Menu

#612 nm(1) does not support versioned symbols

RELEASE_1_0
new
nobody
None
nm
task
2022-09-11
2022-09-11
Xin LI
No

elftoolchain's nm(1) doesn't seem to support versioned symbols like binutils's nm(1):

binutils:

$ /usr/local/bin/nm -D /bin/sync
                 w _Jv_RegisterClasses
                 w __cxa_finalize@FBSD_1.0
0000000000003c48 D __progname
                 U _init_tls@FBSD_1.0
                 U atexit@FBSD_1.0
0000000000003ca0 B environ
                 U exit@FBSD_1.0
                 U sync@FBSD_1.0

elftoolchain:

                 w _Jv_RegisterClasses
                 w __cxa_finalize
0000000000003c48 D __progname
                 U _init_tls
                 U atexit
0000000000003ca0 B environ
                 U exit
                 U sync

readelf(1) however, do support versioned symbols.

Note that if the tool would be rewritten like suggested in [#609], the issue might be addressed at a different level.

Related

Tickets: #609

Discussion


Log in to post a comment.