[PATCH][lld] Begin AArch64 support

Tim Northover t.p.northover at gmail.com
Mon May 6 09:43:23 PDT 2013


Hi all,

I've been poking around at lld a bit today (purely for my own
entertainment on the bank-holiday), trying to work out how much is
involved in adding a new target.

The attached patch makes a very basic start on AArch64, essentially
containing just enough class definitions to compile and teaching lld
about the names of our relocations (well, the ones LLVM itself knows
about anyway).

Most of the features (such as they are) are tested, I believe.

But I couldn't see a way to test converting an "R_AARCH64_..." string
into its internal representation (i.e. yaml -> ELF -> something
useful). "lld -core" didn't seem to want to do anything
target-specific no matter what I told it, and "lld -flavor gnu"
persisted in thinking I was giving it a linker script rather than a
YAMLised ELF file.

Can I commit in broad terms, and if so should I break it up into its
three testable bits (triviality; read R_AARCH strings; write R_AARCH
strings) or leave it as is?

Cheers.

Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lld-ELF-Framework-for-AArch64-support.patch
Type: application/octet-stream
Size: 23956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130506/960170a8/attachment.obj>


More information about the llvm-commits mailing list