bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/25708] New: nm -D doesn't display symbol version for dynam


From: hjl.tools at gmail dot com
Subject: [Bug binutils/25708] New: nm -D doesn't display symbol version for dynamic symbols
Date: Sun, 22 Mar 2020 11:46:38 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]