bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/16566] Please provide a way to include static symbols in linker


From: nickc at redhat dot com
Subject: [Bug ld/16566] Please provide a way to include static symbols in linker map file
Date: Thu, 27 Apr 2023 11:47:25 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

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

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 14853
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14853&action=edit
Proposed patch

Hi Paul, Hi Jon,

  Would either of you like to try out this potential patch ?

  It adds local symbols to the linker map at the appropriate places, with a
  prefix of "(local) " so that they can be quickly identified.  (Note local
  symbols are displayed after global symbols for a given section, rather than
  being mixed in with the global symbols).

  It is not complete yet.  I think that I am going to have to add a command
  line option to control its use, as I expect that there are people out there
  who rely on the current format not changing.  Plus I will need to add a
  testcase or two to the testsuite.

  I did find that *some* local symbols are already included in the linker map,
  eg _GLOBAL_OFFSET_TABLE_ and at the moment such symbols will appear twice.
  So I ought to try to find a way to stop that from happening as well.

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]