[AArch64][5/6] GAS support TLSLD load/store relocation types

Jiong Wang jiong.wang@arm.com
Wed Aug 19 12:33:00 GMT 2015


All these relocation types are for LDST instructions, they share the
same gas internal logic, so put them together.

2015-08-19  Jiong Wang  <jiong.wang@arm.com>

bfd/
   * reloc.c: New entries, including
   BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
   BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
   BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
   BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
   BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
   BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC.
   BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
   BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC.
   * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
   * bfd-in2.h: Regenerate.
   * libbfd.h: Regenerate.

gas/
   * config/tc-aarch64.c (reloc_table): New relocation modifiers.
   (ldst_lo12_determine_real_reloc_type): Support new LDST reloc types.
   (parse_operands): Likewise.
   (md_apply_fix): Support new relocation types.
   (aarch64_force_relocation): Likewise.
   (process_movw_reloc_info): Likewise.

gas/testsuite/
   * gas/aarch64/reloc-dtprel-lo12-ldst8.s: New testcase.
   * gas/aarch64/reloc-dtprel-lo12-ldst8-nc.s: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst16.s: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst16-nc.s: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst32.s: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst32-nc.s: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst64.s: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst64-nc.s: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst8.d: New expectation file.
   * gas/aarch64/reloc-dtprel-lo12-ldst8-nc.d: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst16.d: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst16-nc.d: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst32.d: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst32-nc.d: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst64.d: Likewise.
   * gas/aarch64/reloc-dtprel-lo12-ldst64-nc.d: Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-5.patch
Type: text/x-diff
Size: 23362 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150819/3615212c/attachment.bin>


More information about the Binutils mailing list