https://sourceware.org/bugzilla/show_bug.cgi?id=26740
Bug ID: 26740 Summary: Extra filename generated by --gdwarf-4 Product: binutils Version: 2.36 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97451 [hjl@gnu-skx-1 stage1-gcc]$ cat /tmp/x.s .file "lbasename.c" .text .p2align 4 .globl unix_lbasename .type unix_lbasename, @function unix_lbasename: ret .p2align 4 .globl dos_lbasename .type dos_lbasename, @function dos_lbasename: .file 1 "/export/gnu/import/git/sources/gcc/libiberty/lbasename.c" ret .size dos_lbasename, .-dos_lbasename .file 2 "/export/gnu/import/git/sources/gcc/libiberty/../include/safe-ctype.h" [hjl@gnu-skx-1 stage1-gcc]$ as --gdwarf-4 --64 -o x.o /tmp/x.s [hjl@gnu-skx-1 stage1-gcc]$ readelf -w x.o | grep -A4 File The File Name Table (offset 0x87): Entry Dir Time Size Name 1 2 0 0 lbasename.c 2 3 0 0 safe-ctype.h 3 1 0 0 x.s <<< This shouldn't be there. [hjl@gnu-skx-1 stage1-gcc]$ -- You are receiving this mail because: You are on the CC list for the bug.