This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [whopr] Design/implementation alternatives for the driver and WPA
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