public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Named local symbols in the ELF dynamic symbol table
@ 2022-12-06 17:11 Florian Weimer
  2022-12-08 13:19 ` Nick Clifton
  2022-12-14 21:44 ` H.J. Lu
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Weimer @ 2022-12-06 17:11 UTC (permalink / raw)
  To: binutils

The symbol table of /lib/ld-linux-ia64.so.2 starts like this:

Symbol table [ 3] '.dynsym' contains 65 entries:
 33 local symbols  String table: [ 4] '.dynstr'
  Num:            Value   Size Type    Bind   Vis          Ndx Name
    0: 0000000000000000      0 NOTYPE  LOCAL  DEFAULT    UNDEF 
    1: 00000000000318c0    160 FUNC    LOCAL  DEFAULT       10 _dl_error_free
    2: 00000000000234c0     16 FUNC    LOCAL  DEFAULT       10 __GI__dl_debug_state
    3: 0000000000029f80    368 FUNC    LOCAL  DEFAULT       10 _dl_tls_get_addr_soft
    4: 000000000002be00   1728 FUNC    LOCAL  DEFAULT       10 _dl_open
    5: 0000000000001550     64 FUNC    LOCAL  DEFAULT       10 _start
    6: 0000000000031540    784 FUNC    LOCAL  DEFAULT       10 _dl_runtime_profile
    7: 0000000000031440    208 FUNC    LOCAL  DEFAULT       10 _dl_runtime_resolve
    8: 00000000000312c0    384 FUNC    LOCAL  DEFAULT       10 _dl_close
    9: 0000000000018240  10720 FUNC    LOCAL  DEFAULT       10 _dl_lookup_symbol_x
   10: 000000000003ab40     80 FUNC    LOCAL  DEFAULT       10 _rtld_catch_error

The interesting aspect is that these symbols are named, but are not
covered by the GNU_HASH table (because they are local).

Is there a way to get the same effect on other targets?  I want to
preserve the names of the functions that IFUNC resolvers return,
eventually improving diagnostics around IFUNC resolution.  It would best
if I wouldn't have to bloat the entire symbol table for that.

Thanks,
Florian


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-14 21:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06 17:11 Named local symbols in the ELF dynamic symbol table Florian Weimer
2022-12-08 13:19 ` Nick Clifton
2022-12-09 17:34   ` Florian Weimer
2022-12-14 15:31     ` Nick Clifton
2022-12-14 20:05     ` Fangrui Song
2022-12-14 21:44 ` H.J. Lu
2022-12-14 21:53   ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).