[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/17902] New: missing optimization: unused strings not deleted
From: |
rafael.espindola at gmail dot com |
Subject: |
[Bug gold/17902] New: missing optimization: unused strings not deleted |
Date: |
Thu, 29 Jan 2015 11:52:40 +0000 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/17902] New: missing optimization: unused strings not deleted,
rafael.espindola at gmail dot com <=