bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/14037] Bogus global symbol ABS redefinition when linking PIC app


From: amodra at gmail dot com
Subject: [Bug ld/14037] Bogus global symbol ABS redefinition when linking PIC app to eh_frame-stripped shared library
Date: Tue, 01 May 2012 07:29:40 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14037

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #1 from Alan Modra <amodra at gmail dot com> 2012-05-01 07:29:40 
UTC ---
On the face of it this appears to be a strip/objcopy bug.  "global" is defined
in .bss, section number 22 with my version of x86-64 gcc.  .eh_frame_hdr and
.eh_frame are sections 13 and 14.  When they are removed, the dynamic symbol
table is not updated.  "global" stays defined in section 22, which is now
.shstrtab, an entirely different type of section.  This confuses the linker.

However, the documentation for objcopy -R and strip -R says "Note that using
this option inappropriately may make the output file unusable".  Which is
exactly what you've done.

If you want to strip sections, do so at link time using a linker script with
/DISCARD/.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]