Scott Shawcroft via llvm-dev
2017-Apr-30 22:47 UTC
[llvm-dev] Help with setting up ARM embedded clang + lld
Ok, thanks! I got it going that way. I'd still love to hear from anyone off list working on similar stuff. ~Scott On Sun, Apr 30, 2017, at 03:32 PM, Joerg Sonnenberger wrote:> On Sun, Apr 30, 2017 at 03:18:35PM -0700, Scott Shawcroft via llvm-dev > wrote: > > Hi all, > > I've been doing a ton of embedded work (bare metal ARM Cortex M0+ and > > M4, hopefully RISCV in the future) in the last year and would love to > > start using and hacking on the llvm toolchain. I've tried setting up > > clang + lld but can't get lld to work because clang tries to launch gcc. > > I realize support is early but I'd love to have a dev setup so I can > > help fix things. > > clang doesn't know how to call a linker for baremetal, so it tries to > fallback to gcc. Just call the linker directly. > > Joerg
Rui Ueyama via llvm-dev
2017-May-01 01:05 UTC
[llvm-dev] Help with setting up ARM embedded clang + lld
I'm interested in supporting embedded programs as well as supporting RISC-V. Let me know if I can help you. On Sun, Apr 30, 2017 at 3:47 PM, 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. > ~Scott > > On Sun, Apr 30, 2017, at 03:32 PM, Joerg Sonnenberger wrote: > > On Sun, Apr 30, 2017 at 03:18:35PM -0700, Scott Shawcroft via llvm-dev > > wrote: > > > Hi all, > > > I've been doing a ton of embedded work (bare metal ARM Cortex M0+ and > > > M4, hopefully RISCV in the future) in the last year and would love to > > > start using and hacking on the llvm toolchain. I've tried setting up > > > clang + lld but can't get lld to work because clang tries to launch > gcc. > > > I realize support is early but I'd love to have a dev setup so I can > > > help fix things. > > > > clang doesn't know how to call a linker for baremetal, so it tries to > > fallback to gcc. Just call the linker directly. > > > > Joerg > _______________________________________________ > 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/20170430/77a1389b/attachment.html>
Renato Golin via llvm-dev
2017-May-01 14:11 UTC
[llvm-dev] Help with setting up ARM embedded clang + lld
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
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