Scott Shawcroft via llvm-dev
2017-May-01 17:35 UTC
[llvm-dev] Help with setting up ARM embedded clang + lld
Awesome! I got lld running but it GCed all my sections away. :-) I'll keep experimenting with it. ~Scott On Mon, May 1, 2017, at 07:11 AM, Renato Golin wrote:> On 30 April 2017 at 23:47, Scott Shawcroft via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > Ok, thanks! I got it going that way. I'd still love to hear from anyone > > off list working on similar stuff. > > Hi Scott, > > Peter (CC'd) is implementing support for ARM32 on LLD. There are a few > missing pieces, but most support has been upstreamed already. > > AFAIK, the most important missing features are range extension chunks > (important for large code base, like Clang) and better support for > linker script files (more important to embedded cases, like yours). > > Apart from that, "it should just work". :) > > Let us know if you find anything else. Adding a bug to bugzilla and > copying us (in this thread, including Rui, Joerg, me, Peter) would be > the best way to fix issues. > > cheers, > --renato
Rui Ueyama via llvm-dev
2017-May-02 22:59 UTC
[llvm-dev] Help with setting up ARM embedded clang + lld
That's interesting. Usually your code wouldn't be gc'ed because your entire code is reachable from _start. Does your program depend on the feature that, if no -e option is given, the linker sets the beginning of the .text section to the entry point address? On Mon, May 1, 2017 at 10:35 AM, Scott Shawcroft via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Awesome! I got lld running but it GCed all my sections away. :-) I'll > keep experimenting with it. > ~Scott > > On Mon, May 1, 2017, at 07:11 AM, Renato Golin wrote: > > On 30 April 2017 at 23:47, Scott Shawcroft via llvm-dev > > <llvm-dev at lists.llvm.org> wrote: > > > Ok, thanks! I got it going that way. I'd still love to hear from anyone > > > off list working on similar stuff. > > > > Hi Scott, > > > > Peter (CC'd) is implementing support for ARM32 on LLD. There are a few > > missing pieces, but most support has been upstreamed already. > > > > AFAIK, the most important missing features are range extension chunks > > (important for large code base, like Clang) and better support for > > linker script files (more important to embedded cases, like yours). > > > > Apart from that, "it should just work". :) > > > > Let us know if you find anything else. Adding a bug to bugzilla and > > copying us (in this thread, including Rui, Joerg, me, Peter) would be > > the best way to fix issues. > > > > cheers, > > --renato > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170502/e00db19d/attachment.html>
Renato Golin via llvm-dev
2017-May-03 10:52 UTC
[llvm-dev] Help with setting up ARM embedded clang + lld
On 2 May 2017 at 23:59, Rui Ueyama <ruiu at google.com> wrote:> That's interesting. Usually your code wouldn't be gc'ed because your entire > code is reachable from _start.Baremetal doesn't need a _start.> Does your program depend on the feature that, if no -e option is given, the > linker sets the beginning of the .text section to the entry point address?I believe that would help, yes. But there may be linker scripts that can change that, so you need to be careful. cheers, --renato