bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/23850] GNU strip should not discard/move .rela.plt in exec


From: amodra at gmail dot com
Subject: [Bug binutils/23850] GNU strip should not discard/move .rela.plt in executable linking glibc statically
Date: Fri, 02 Nov 2018 01:13:13 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23850

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2018-11-02
           Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
     Ever confirmed|0                           |1

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
.rela.plt in a static executable can only contain IRELATIVE relocations that
must have a zero symbol index.  Thus it is not necessary for that particular
SHT_RELA section to have sh_link index .symtab.  As you recognize, it is also
inconsistent to have a SHF_ALLOC SHT_RELA section sh_link point at a
non-SHF_ALLOC symbol table.  You should probably report this problem as an lld
bug.

That said, objcopy can be fixed without too much trouble, I think.

-- 
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]