[PATCH] [lld] ELF: Initial implementation for ARM static linking

Will Newton will.newton at linaro.org
Wed Nov 26 06:01:02 PST 2014


On 26 November 2014 at 12:17, Denis Protivensky
<dprotivensky at accesssoftek.com> wrote:
> Hi,
>
> The patch contains the skeleton code for ELF binary generation for ARM platform.
> The code is "almost" able to statically link the simplest case of void main() { return 0; } sample.

Do you know what functionality is missing to enable that?

> Added all needed relocations, GOT and TLS handling.
> Some of these may still be improper which causes segfaults.
>
> NOTE: the tests are absent because there's no simple way to generate diff for binary files (which are used in tests by the linker).

Is it possible to use ELFYAML for the tests similarly to e.g. the MIPS
backend? I recently posted a patch to add ARM support to ELFYAML.

A couple of things I noticed:

1. GNU ld seems to use "armelf_linux_eabi" for the emulation name
rather than "armlinux"
2. One comment reference to x86-64 that should be ARM
3. It would be useful to add a TODO list that lists all the known
unimplemented parts

Otherwise this looks like a good start!

-- 
Will Newton
Toolchain Working Group, Linaro



More information about the llvm-commits mailing list