Carlo Kok via llvm-dev
2017-May-30 18:59 UTC
[llvm-dev] Missing symbol __executable_start on Android when linking with LLD
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>
Rafael Avila de Espindola via llvm-dev
2017-May-30 22:53 UTC
[llvm-dev] Missing symbol __executable_start on Android when linking with LLD
Carlo Kok <ck at remobjects.com> writes:> Android libc casts its address to the elf header type. So I think start of text?Can you give https://reviews.llvm.org/D33700 a try? Cheers, Rafael
Carlo Kok via llvm-dev
2017-May-31 09:27 UTC
[llvm-dev] Missing symbol __executable_start on Android when linking with LLD
On Tue, 30 May 2017 15:53:48 -0700 Rafael Avila de Espindola <rafael.espindola at gmail.com> wrote:> Carlo Kok <ck at remobjects.com> writes: > > > Android libc casts its address to the elf header type. So I think > > start of text? > > Can you give https://reviews.llvm.org/D33700 a try?links fine now! thanks. I'm still a bit off for this code path to actually hit, so I can't tell yet if it does what it's supposed to do. -- Carlo Kok RemObjects Software