externally_visible and resoultion file

Richard Guenther richard.guenther@gmail.com
Wed May 26 16:19:00 GMT 2010

On Wed, May 26, 2010 at 5:53 PM, Bingfeng Mei <bmei@broadcom.com> wrote:
> Hi, Richard,
> With resolution file generated by GOLD (or I am going to hack gnu LD),  is
> externally_visible attribute still needed to annotate those symbols accessed
> from non-LTO objects when compiling with -fwhole-program.

Yes it is.  We do not parse the complete resolution file but only the
entries we'll end up reading .o files with LTO information for.

> In theory, it shouldn't be needed since LTO has all information. But what
> about current implementation. I checked relevant source files and can't
> get immediate clue.

The current implementation has no idea of the external references
(though it's probably not too hard to implement).


More information about the Gcc mailing list