mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-16 04:18:50 +00:00
Previously objcopy had to be run twice in order to make a local symbol weak, first once to globalize it, and once again to mark it as weak. * objcopy.c (filter_symbols): Weaken symbols after making local/global changes. * testsuite/binutils-all/symbols-5.d, * testsuite/binutils-all/symbols-5.s: New test.
9 lines
136 B
Makefile
9 lines
136 B
Makefile
#name: globalize and weaken 'foo'
|
|
#PROG: objcopy
|
|
#objcopy: --globalize-symbol foo -W foo
|
|
#source: symbols-5.s
|
|
#nm: -n
|
|
|
|
#...
|
|
0+ [VW] foo
|