[GAS][AARCH64]Add BFD_RELOC_AARCH64_LD64_GOTOFF_LO15 Support
Renlin Li
renlin.li@arm.com
Thu Jun 4 15:21:00 GMT 2015
Hi all,
This patch add BFD_RELOC_AARCH64_LD64_GOTOFF_LO15 support in Gas.
It's used in large memory model, GOT pic addressing.
The GOT size is limited to 28KiB in pic mode. So 15bit is enough to
address all entries inside GOT
// gp = &_GOT_
ldr t0, [gp, #:gotoff_lo15:src] //
R_AARCH64_LD64_GOTOFF_LO15 src
Binutils and GAS tests Okay. Okay to commit?
Regards,
Renlin Li
bfd/ChangeLog:
2015-06-04 Renlin Li <renlin.li@arm.com>
* reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): New entry.
* elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
gas/ChangeLog:
2015-06-04 Renlin Li <renlin.li@arm.com>
* config/tc-aarch64.c (reloc_table): New relocation modifier.
(md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
(aarch64_force_relocation): Ditto
gas/testsuite/ChangeLog:
2015-06-04 Renlin Li <renlin.li@arm.com>
* gas/aarch64/reloc-insn.s: Update test
* gas/aarch64/reloc-insn.d: Update expected result.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GAS_BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.diff
Type: text/x-patch
Size: 8512 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150604/c57589e4/attachment.bin>
More information about the Binutils
mailing list