This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]