[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/11146] New: "readelf -Ds" doesn't work right
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug binutils/11146] New: "readelf -Ds" doesn't work right |
Date: |
7 Jan 2010 18:00:16 -0000 |
On Fedora/12 where gnu-hash is used, I got
address@hidden pr]$ cat foo.c
#include <stdio.h>
int
main ()
{
printf ("Hello\n");
return;
}
address@hidden pr]$ gcc foo.c
address@hidden pr]$ readelf -Ds a.out
address@hidden pr]$ readelf -s a.out
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 WEAK DEFAULT UND __gmon_start__
2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND address@hidden (2)
3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
address@hidden (2)
...
"readelf -Ds" uses hash section to find dynamic symbols. Since
gnu-hash doesn't include local nor undefined dynamic symbols,
those dynamic symbols aren't displayed.
--
Summary: "readelf -Ds" doesn't work right
Product: binutils
Version: 2.21 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl dot tools at gmail dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11146
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/11146] New: "readelf -Ds" doesn't work right,
hjl dot tools at gmail dot com <=