objcopy --weaken and stripping

Peter S. Mazinger ps.m@gmx.net
Tue Jun 26 12:02:00 GMT 2007


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



More information about the Binutils mailing list