bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24874] ld: --gc-sections reorders GNU build attributes


From: nickc at redhat dot com
Subject: [Bug ld/24874] ld: --gc-sections reorders GNU build attributes
Date: Mon, 05 Aug 2019 15:25:10 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |nickc at redhat dot com
         Resolution|---                         |FIXED

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
The problem is cause by crt1.o containing multiple .gnu.build.note sections.
In the object file they are in the right order, but when linked with
gc-sections
enabled they end up in the wrong order.  Technically this is a violation of the
Watermark protocol, but in practice it no longer matters as the code has to
perform multiple passes over the notes anyway, so it can easily locate the
version notes during its first pass.  So I have updated objcopy's code to
remove the error message.

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