[llvm-dev] Missing symbol __executable_start on Android when linking with LLD

Carlo Kok via llvm-dev llvm-dev at lists.llvm.org
Tue May 30 11:59:54 PDT 2017


Android libc casts its address to the elf header type. So I think start of text?

Rafael Avila de Espindola <rafael.espindola at gmail.com> schreef op 30 mei 2017 20:51:19 CEST:
>It is missing from lld.
>
>Do you know what it should point to? The first executable PT_LOAD?
>
>Thanks,
>Rafael
>
>Carlo Kok via llvm-dev <llvm-dev at lists.llvm.org> writes:
>
>> When linking a project with lld, the android libc links to
>> __executable_start
>> which isn't defined when linking with lld (tried on x86), but is when
>> linking with gnu ld it seems. 
>>
>> I tried:
>>
>> .globl	__executable_start
>> __executable_start = __ehdr_start
>>
>> as a workaround but seems to be ignored.
>>
>> Anyone know a better workaround?
>>
>> Thanks,
>>
>> --
>> Carlo Kok
>> RemObjects Software
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-- 
Carlo Kok
RemObjects Software 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170530/08f89e26/attachment.html>


More information about the llvm-dev mailing list