[llvm-bugs] [Bug 41341] New: llvm-objdump -d --line-numbers omits function name
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 1 22:21:33 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41341
Bug ID: 41341
Summary: llvm-objdump -d --line-numbers omits function name
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objdump
Assignee: unassignedbugs at nondot.org
Reporter: rupprecht at google.com
CC: llvm-bugs at lists.llvm.org
llvm-objdump does not include the function name when disassembling with -l
(--line-numbers). I'm not sure whether or not this is desired/intentional.
$ cat foo.c
int foo() {
return 5;
}
$ clang -g -c foo.c -o foo.o
$ objdump -l -d foo.o
foo.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <foo>:
foo(): <--------- this line is missing below
/tmp/foo.c:1
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
/tmp/foo.c:2
4: b8 05 00 00 00 mov $0x5,%eax
9: 5d pop %rbp
a: c3 retq
$ llvm-objdump -l -d foo.o
foo.o: file format ELF64-x86-64
Disassembly of section .text:
0000000000000000 foo:
; /tmp/foo.c:1
0: 55 pushq %rbp
1: 48 89 e5 movq %rsp, %rbp
; /tmp/foo.c:2
4: b8 05 00 00 00 movl $5, %eax
9: 5d popq %rbp
a: c3 retq
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190402/0d0b5025/attachment-0001.html>
More information about the llvm-bugs
mailing list