https://sourceware.org/bugzilla/show_bug.cgi?id=26112
Bug ID: 26112
Summary: readelf --debug-dump=macro can't parse clang debug
info
Product: binutils
Version: 2.34
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: tstellar at redhat dot com
Target Milestone: ---
Created attachment 12621
--> https://sourceware.org/bugzilla/attachment.cgi?id=12621&action=edit
Clang binary output.
Test case:
$ echo "#define FOO bar" | clang -x c -c - -fdebug-macro -gdwarf-5 -o
clang-debug-macro.o
$ readelf --debug-dump=macro ./clang-debug-macro.o
Contents of the .debug_macro section:
Offset: 0x0
Version: 5
Offset size: 4
Offset into .debug_line: 0x0
DW_MACRO_start_file - lineno: 0 filenum: 1
readelf: ./clang-debug-macro.o: Error: Unknown macro opcode 0b seen
I'm using binutils-2.34.0-6.fc33 from Fedora and clang 11 (which is current
trunk). It looks this used to work, but stopped working after clang commit:
https://github.com/llvm/llvm-project/commit/b47403c0a4c532554cf3d67ed1669fe00530aab3
--
You are receiving this mail because:
You are on the CC list for the bug.