[PATCH] D36351: [lld][ELF] Add profile guided section layout

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 14:37:47 PST 2018


Michael Spencer <bigcheesegs at gmail.com> writes:

> It's an inherent problem with trying to use symbol names to identify
> sections. I believe the best you can do is to handle local symbols on a per
> file basis. Meaning prioritize symbols from the same file over symbols from
> different files.

If this really turns out to be an issue I would suggest adding support
for parsing something like

foo.o:symbol_name

and whatever tool is writing the call-graph can use the output of -Map
to find out which file a particular symbol_name came from.

Cheers,
Rafael


More information about the llvm-commits mailing list