https://sourceware.org/bugzilla/show_bug.cgi?id=25708
Bug ID: 25708 Summary: nm -D doesn't display symbol version for dynamic symbols Product: binutils Version: 2.35 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-cfl-2 pr13195]$ cat x.s .section .text.new_foo,"ax",%progbits .globl new_foo .type new_foo, %function new_foo: call foo call bar .symver new_foo,foo@@VERS_2.0 [hjl@gnu-cfl-2 pr13195]$ cat x.t VERS_2.0 { global: foo; local: *; }; [hjl@gnu-cfl-2 pr13195]$ make x.so ld -shared --gc-sections -shared -version-script x.t --hash-style=gnu -o x.so x.o [hjl@gnu-cfl-2 pr13195]$ /export/build/gnu/tools-build/binutils/build-x86_64-linux/binutils/nm-new -D x.so U bar 0000000000001030 T foo 0000000000000000 A VERS_2.0 [hjl@gnu-cfl-2 pr13195]$ /export/build/gnu/tools-build/binutils/build-x86_64-linux/binutils/objdump --dynamic-syms x.so x.so: file format elf64-x86-64 DYNAMIC SYMBOL TABLE: 0000000000000000 D *UND* 0000000000000000 bar 0000000000000000 g DO *ABS* 0000000000000000 VERS_2.0 VERS_2.0 0000000000001030 g DF .text 0000000000000000 VERS_2.0 foo [hjl@gnu-cfl-2 pr13195]$ -- You are receiving this mail because: You are on the CC list for the bug.