This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
objcopy --weaken and stripping
- From: "Peter S. Mazinger" <ps dot m at gmx dot net>
- To: binutils at sourceware dot org
- Date: Tue, 26 Jun 2007 14:02:08 +0200 (CEST)
- Subject: objcopy --weaken and stripping
Hello!
Creating a shared library, running `objcopy --weaken <lib>` weakens all
global symbols as expected. If I run after this `strip --strip-unneeded
<lib>`, the weakened symbols become non-weak. Rerunning objcopy --weaken
does not change anything.
If the shared library is linked with `ld -s <lib>`, then objcopy --weaken
does not have any effect.
Is this the expected behaviour?
Thanks, Peter
Please CC me, not on list.
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2