[llvm-dev] Help with setting up ARM embedded clang + lld

Renato Golin via llvm-dev llvm-dev at lists.llvm.org
Wed May 3 03:52:29 PDT 2017


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


More information about the llvm-dev mailing list