[lld] r247073 - [lld][elf2] Fix hard coded entry address.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 14:43:15 PDT 2015


On 8 September 2015 at 17:41, Michael Spencer via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> On Tue, Sep 8, 2015 at 2:18 PM, Rui Ueyama <ruiu at google.com> wrote:
>> It's probably better to store a pointer to an undefined symbol for "_start"
>> to Config object and get its symbol resolution result just by looking at the
>> undefined objects repl(), instead of looking up the name more than once.
>> That's what we do in COFF.
>
> Undefined references currently require an ELFT, which we can't get
> until we read the first input file.
>
> I'll look into changing it so we can generate an undefined symbol at the start.

For this you might be able to store the reference from SymbolTable::init.

Cheers,
Rafael


More information about the llvm-commits mailing list