diff options
author | Renlin Li <renlin.li@arm.com> | 2015-06-15 11:07:37 +0100 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2015-06-15 11:07:37 +0100 |
commit | 87f5fbcc7aa49cee13e9ed44587b80d695d7e781 (patch) | |
tree | bd634afe87cb2833ea0582eb3bc2327239753bff /bfd/elfnn-aarch64.c | |
parent | a2a4d60d831e40350d96edd2f1cd55f430d04fd4 (diff) | |
download | binutils-87f5fbcc7aa49cee13e9ed44587b80d695d7e781.zip binutils-87f5fbcc7aa49cee13e9ed44587b80d695d7e781.tar.gz binutils-87f5fbcc7aa49cee13e9ed44587b80d695d7e781.tar.bz2 |
[AArch64] Gas add BFD_RELOC_AARCH64_LD64_GOTOFF_LO15 support
2015-06-15 Renlin Li <renlin.li@arm.com>
bfd/
* 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/
* 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/
* gas/aarch64/reloc-insn.s: Update test
* gas/aarch64/reloc-insn.d: Update expected result.
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r-- | bfd/elfnn-aarch64.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 4065dfc..1c55058 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -848,6 +848,21 @@ static reloc_howto_type elfNN_aarch64_howto_table[] = 0xffc, /* dst_mask */ FALSE), /* pcrel_offset */ + /* LD64: GOT offset for the symbol. */ + HOWTO64 (AARCH64_R (LD64_GOTOFF_LO15), /* type */ + 3, /* rightshift */ + 2, /* size (0 = byte, 1 = short, 2 = long) */ + 12, /* bitsize */ + FALSE, /* pc_relative */ + 0, /* bitpos */ + complain_overflow_unsigned, /* complain_on_overflow */ + bfd_elf_generic_reloc, /* special_function */ + AARCH64_R_STR (LD64_GOTOFF_LO15), /* name */ + FALSE, /* partial_inplace */ + 0x7ff8, /* src_mask */ + 0x7ff8, /* dst_mask */ + FALSE), /* pcrel_offset */ + /* LD32: GOT offset to the page address of GOT table. (G(S) - PAGE (_GLOBAL_OFFSET_TABLE_)) & 0x5ffc. */ HOWTO32 (AARCH64_R (LD32_GOTPAGE_LO14), /* type */ |