http://sourceware.org/bugzilla/show_bug.cgi?id=12718
Summary: Spurious empty .plt/.rela.plt sections generated
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo
http://sourceware.org/bugzilla/show_bug.cgi?id=12718
Alan Modra changed:
What|Removed |Added
CC||amodra at gmail dot com
--- Comment #1 fr
http://sourceware.org/bugzilla/show_bug.cgi?id=12718
--- Comment #2 from H.J. Lu 2011-04-30 16:05:40
UTC ---
(In reply to comment #1)
> My guess is that the bug is due to the x86/x86_64 ifunc support, specifically
> that iplt and its reloc section is created without setting dynobj.
To support I
On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote:
> I am seeing a strange thing. The (BFD) linker spuriously generates .plt
> and .rela.plt sections (both empty) for a link that has no need for them.
> It's reproduced with a trivial example, and seen on today's binutils trunk.
> Gold
http://sourceware.org/bugzilla/show_bug.cgi?id=12718
--- Comment #3 from Alan Modra 2011-05-01 00:01:33
UTC ---
Like I said, all you need to do is set dynobj when creating the sections.
dynobj set => backend size_dynamic_sections will run and set SEC_EXCLUDE on the
input sections => strip_exclu
On Sat, Apr 30, 2011 at 4:57 PM, Alan Modra wrote:
> On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote:
>> I am seeing a strange thing. The (BFD) linker spuriously generates .plt
>> and .rela.plt sections (both empty) for a link that has no need for them.
>> It's reproduced with a tr