bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/31067] symbols eliminated by --gc-sections still trigger warning


From: nickc at redhat dot com
Subject: [Bug ld/31067] symbols eliminated by --gc-sections still trigger warnings for gnu.warning.SYM
Date: Mon, 20 Nov 2023 16:30:54 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |nickc at redhat dot com
                 CC|                            |nickc at redhat dot com
             Status|NEW                         |ASSIGNED

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Richard,

  You are correct, this is a, mmm, misfeature.  

  There are two reasons for my hesitation:  1.  It appears that there is no
specification for how .gnu.warning.SYM sections should be handled.  2. The
warning is generated very early on in the linker's code, at the place where
symbols are added to the internal symbol tables, so moving the warning
generation to after garbage collection will be non-trivial.

  So I am tempted to resolve this issue by documenting the current behaviour as
the expected behaviour.  But I agree that the behaviour is non-intuitive and
can cause user confusion.  So I will have a look and see if I can find a simple
fix.

Cheers
  Nick

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