bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25154] Orphan section ".got" is placed differently


From: amodra at gmail dot com
Subject: [Bug ld/25154] Orphan section ".got" is placed differently
Date: Mon, 04 Nov 2019 02:23:01 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |amodra at gmail dot com
         Resolution|---                         |INVALID

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
(In reply to Fangrui Song from comment #0)
> The name ".got" is special.

That's true, but that isn't the whole reason why you are seeing this behaviour.
 The real reason is that your testcase is attempting to create non-allocated
sections.  These normally appear after allocated sections when linking. 
Because .got is known to be an "aw" section gas creates your relocatable object
file with .got being SHF_WRITE and SHF_ALLOC.

So not a linker bug.  Possibly could be characterized as an assembler bug, but
I see it as a feature that a needed flag is automatically added.  Users often
leave off the flags entirely.  gas will warn if you specify wrong flags for
known sections, eg. "ax" for .got.

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