[PATCH] D32887: [ELF] Emit __ehdr_start when there is a segment containing program headers

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 13:11:00 PDT 2017


Petr Hosek via Phabricator via llvm-commits
<llvm-commits at lists.llvm.org> writes:

> ruiu wrote:
>> Re-scanning all relocations is probably too slow.
> I'm aware of that, do you have any ideas on how to do it faster? I don't know if there's any way to find relocations for a given symbol which is what's really needed here. Alternative would be to print an error without giving section and offset info, but that'll make it inconsistent with error reports for regular undefined symbols.

But that only happens when we know we are about to produce an error, no?

Cheers,
Rafael


More information about the llvm-commits mailing list