[Bug lto/49992] lto-bootstrap reveals duplicate symbols on x86_64-apple-darwin11

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 9 13:16:00 GMT 2011


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

--- Comment #17 from Iain Sandoe <iains at gcc dot gnu.org> 2011-08-09 13:15:26 UTC ---
the use of "-c" (for libbackend.a) was introduced by
http://gcc.gnu.org/viewcvs?view=revision&revision=84088
without any specific comment as to why it was done.

trying *-darwin9 and x86_64-darwin10 with default ranlib behavior.

If it is a ld bug - then I guess the radar needs re-opening - but, if the
default on darwin is NOT to include common vars in the table of contents, one
wonders why we decided to do different.

the lto symbol is still present in each object in the archive - so, as long as
lto does not expect it to be in the table of contents in order to determine if
the library is compiled with lto, we should be OK to remove it.



More information about the Gcc-bugs mailing list