"objdump -d -l -j .text" may give wrong function name when
__attribute__((section)) is used:
[EMAIL PROTECTED] objdump]$ cat x.c
static void bar ()
{
}
__attribute__((section(".init.text"), noinline))
static void foo ()
{
}
[EMAIL PROTECTED] objdump]$ make
gcc -g -c -o x.o x.c
objdump -d -r -l -j .text x.o
x.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <bar>:
foo():
/export/home/hjl/bugs/binutils/objdump/x.c:2
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: c9 leaveq
5: c3 retq
[EMAIL PROTECTED] objdump]$
--
Summary: objdump -d -l -j .text doesn't work correctly
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl at lucon dot org
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=2338
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils