bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/25707] New: readelf -D -s doesn't dump the full dynamic sy


From: hjl.tools at gmail dot com
Subject: [Bug binutils/25707] New: readelf -D -s doesn't dump the full dynamic symbol table with --hash-style=gnu
Date: Sun, 22 Mar 2020 11:41:49 +0000

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

            Bug ID: 25707
           Summary: readelf -D -s doesn't dump the full dynamic symbol
                    table with --hash-style=gnu
           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
as   -o x.o x.s
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/readelf -D
-s x.so 

Symbol table of `.gnu.hash' for image:
  Num Buc:    Value          Size   Type   Bind Vis      Ndx Name
    2   0: 0000000000000000     0 OBJECT  GLOBAL DEFAULT ABS VERS_2.0
    3   1: 0000000000001030     0 FUNC    GLOBAL DEFAULT   8 foo
[hjl@gnu-cfl-2 pr13195]$
/export/build/gnu/tools-build/binutils/build-x86_64-linux/binutils/readelf
--dyn-syms x.so 

Symbol table '.dynsym' contains 4 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND bar
     2: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  ABS VERS_2.0
     3: 0000000000001030     0 FUNC    GLOBAL DEFAULT    8 foo@@VERS_2.0
[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]