bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/2338] New: objdump -d -l -j .text doesn't work correctly


From: hjl at lucon dot org
Subject: [Bug binutils/2338] New: objdump -d -l -j .text doesn't work correctly
Date: 14 Feb 2006 17:32:30 -0000

"objdump -d -l -j .text" may give wrong function name when
__attribute__((section)) is used:

address@hidden objdump]$ cat x.c
static void bar ()
{
}
__attribute__((section(".init.text"), noinline))
static void foo ()
{
}
address@hidden 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
address@hidden 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.




reply via email to

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