https://sourceware.org/bugzilla/show_bug.cgi?id=17973
Bug ID: 17973
Summary: Useless FILE entries in symbol table
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
ld generates useless FILE entries in symbol table:
[hjl@gnu-6 symtab-2]$ cat foo.s
.text
.globl foo
.type foo, @function
foo:
.cfi_startproc
rep ret
.cfi_endproc
.size foo, .-foo
.type bar, @function
bar:
.cfi_startproc
rep ret
.cfi_endproc
.size bar, .-bar
[hjl@gnu-6 symtab-2]$ make
as -o foo.o foo.s
ld -shared -o lib.so foo.o
ld.gold -shared -o gold.so foo.o
readelf -sW lib.so | grep FILE
7: 0000000000000000 0 FILE LOCAL DEFAULT ABS foo.o
9: 0000000000000000 0 FILE LOCAL DEFAULT ABS
readelf -sW gold.so | grep FILE
make: *** [all] Error 1
[hjl@gnu-6 symtab-2]$
It leads to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65015
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils