http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375

--- Comment #74 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-07 
22:07:38 UTC ---
Interesting. -O3 makes no difference for me.  I will look into your dumps if I
can spot something useful.

The behavior I observe is that GCC optimize away all the strings that are
placed into test.so. I didn't look deeper into it (I am looking if i can
reproduce your dwarf2out ICE and get a testcase right now), but I think it is
what makes my elfhack test to fail. I am surprised it does not happen for
yours.

If GCC fail to link even such a simple program as elfhack is, something pretty
fundamental must go wrong.  Perhaps it is linker bug. I had problems with older
versions of gold.

Reply via email to