https://sourceware.org/bugzilla/show_bug.cgi?id=17902
Bug ID: 17902
Summary: missing optimization: unused strings not deleted
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at google dot com
Reporter: rafael.espindola at gmail dot com
CC: ian at airs dot com
Created attachment 8090
--> https://sourceware.org/bugzilla/attachment.cgi?id=8090&action=edit
testcase
The attached testcase has a 3 strings: "foo", "bar", "bar". Only "foo" is used.
Run
$ gcc -c test.s
$ ld test.o -o test.so --shared --gc-sections --icf=safe -O3
$ readelf -x .rodata test.so
Hex dump of section '.rodata':
0x000001e8 62617200 666f6f00 bar.foo.
Note that gold merges the two "bar" entries, but fails to notice it can drop it
completely.
--
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