[PATCH] ARM64: When compiling for ELF in PIC mode, local symbols shouldn't go through the GOT.

Tilmann Scheller t.scheller at samsung.com
Fri Apr 25 01:33:12 PDT 2014


Hi,

attached is a patch which improves Linux support in the ARM64 backend, it fixes the following issue:

[PATCH] ARM64: When compiling for ELF in PIC mode, local symbols shouldn't go through the GOT.

There's no need for local symbols to go through the GOT, in fact it seems GNU ld is not even emitting GOT entries for local symbols and will error out when trying to resolve a GOT relocation for a local symbol.

This bug triggers when bootstrapping clang on AArch64 Linux with -fPIC and the ARM64 backend. The AArch64 backend is not affected.

Regards,

Tilmann

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ARM64-When-compiling-for-ELF-in-PIC-mode-local-symbo.patch
Type: application/octet-stream
Size: 2347 bytes
Desc: 0001-ARM64-When-compiling-for-ELF-in-PIC-mode-local-symbo.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140425/5784b7cc/attachment.obj>


More information about the llvm-commits mailing list