[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/4275] New: nm does not list dynamic symbols on AIX
From: |
kstemen at centeris dot com |
Subject: |
[Bug binutils/4275] New: nm does not list dynamic symbols on AIX |
Date: |
26 Mar 2007 00:22:10 -0000 |
This repros with the nm from the AIX toolbox (version 2.14), but it also repros
with a copy of nm I built as part of a cross compiler (version 2.17 from FC6
64bit to AIX 5.3.0.0).
On Linux, even after a binary has been stripped, the dynamic symbols can still
be retrieved. The following commands show this with hello world:
address@hidden ~]$ gcc hello.c -o hello
address@hidden ~]$ strip hello
address@hidden ~]$ nm hello
nm: hello: no symbols
address@hidden ~]$ nm -D hello
w __gmon_start__
U __libc_start_main
U puts
address@hidden ~]$
On AIX, nm does not display these symbols, even though the native dump program
can still access them:
address@hidden ~]$ gcc hello.c -o hello
address@hidden ~]$ /opt/freeware/bin/nm hello | head
00000000100001f0 t
00000000100069fc T .$RESTF14
0000000010006a00 T .$RESTF15
0000000010006a04 T .$RESTF16
0000000010006a08 T .$RESTF17
0000000010006a0c T .$RESTF18
0000000010006a10 T .$RESTF19
0000000010006a14 T .$RESTF20
0000000010006a18 T .$RESTF21
0000000010006a1c T .$RESTF22
address@hidden ~]$ /opt/freeware/bin/nm hello -D | head
/opt/freeware/bin/nm: hello: No symbols
address@hidden ~]$ strip hello
address@hidden ~]$ /opt/freeware/bin/nm hello | head
/opt/freeware/bin/nm: hello: no symbols
address@hidden ~]$ /opt/freeware/bin/nm hello -D | head
/opt/freeware/bin/nm: hello: No symbols
address@hidden ~]$ dump -T hello
hello:
***Loader Section***
***Loader Symbol Table Information***
[Index] Value Scn IMEX Sclass Type IMPid Name
[0] 0x20000b9c 0x0002 0x00 0x05 0x1 0x0000 __rtinit
[1] 0x0000e008 0x0000 0x08 0x07 0x0 0x0001 ___memset
[2] 0x0000f000 0x0000 0x08 0x07 0x0 0x0001 ___memmove
[3] 0x00000000 0x0000 0x08 0x05 0x0 0x0001 errno
[4] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 malloc
[5] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 free
[6] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 exit
[7] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 strlen
[8] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 abort
[9] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 printf
[10] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 __strtollmax
[11] 0x00000000 0x0000 0x08 0x0a 0x0 0x0001 __mod_init
[12] 0x00000000 0x0000 0x08 0x05 0x0 0x0001 __crt0v
[13] 0x00000000 0x0000 0x08 0x05 0x0 0x0001
__malloc_user_defined_name
[14] 0x20000c00 0x0002 0x04 0x0a 0x1 0x0000 __start
address@hidden ~]$
--
Summary: nm does not list dynamic symbols on AIX
Product: binutils
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: kstemen at centeris dot com
CC: bug-binutils at gnu dot org
GCC build triplet: powerpc-ibm-aix5.3.0.0
GCC host triplet: powerpc-ibm-aix5.3.0.0
GCC target triplet: powerpc-ibm-aix5.3.0.0
http://sourceware.org/bugzilla/show_bug.cgi?id=4275
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/4275] New: nm does not list dynamic symbols on AIX,
kstemen at centeris dot com <=