]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
objcopy: Allow making symbol global and weak on same invocation
authorMarcus Nilsson <brainbomb@gmail.com>
Sat, 29 Jun 2024 21:01:56 +0000 (23:01 +0200)
committerAlan Modra <amodra@gmail.com>
Sun, 30 Jun 2024 21:49:47 +0000 (07:19 +0930)
commitebe3f6d0f18505e3f6a1800d3a3ee4b3403d726f
treed3ae815acb42c96da719cb094afafe14300c5f14
parent01a8854406356b6ecfed3a81028d9d552bf18905
objcopy: Allow making symbol global and weak on same invocation

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.
binutils/objcopy.c
binutils/testsuite/binutils-all/symbols-5.d [new file with mode: 0644]
binutils/testsuite/binutils-all/symbols-5.s [new file with mode: 0644]