[whopr] Design/implementation alternatives for the driver and WPA
Ian Lance Taylor
iant@google.com
Thu Jun 5 05:44:00 GMT 2008
Nick Kledzik <kledzik@apple.com> writes:
> In this case S is a regular symbol. So the previous trick won't
> work. Probably
> the best solution would be to add a new lto_ API to tell the LTO
> engine to
> ignore a definition is already has. It would make more sense to use
> this
> new API in the weak case too.
I would like to propose a farther reaching change: for each undefined
symbol reference, tell LTO the location of the symbol definition which
should be used. The linker has to develop this information anyhow
during the course of the link.
Ian
More information about the Gcc
mailing list