[AArch64] BFD_RELOC_AARCH64_TLSLE_ADD_LO12 should enable overflow check
authorJiong Wang <jiong.wang@arm.com>
Mon, 1 Jun 2015 09:31:38 +0000 (10:31 +0100)
committerJiong Wang <jiong.wang@arm.com>
Mon, 1 Jun 2015 09:31:38 +0000 (10:31 +0100)
commit36e6c1400b94b9da7ba0dff5b3900a8d3e3b0c75
tree3d1ec0ddf403d51adf334e946862bf15befff7c7
parent99ad26cb0d4f9152dbe5ed03b74020cc52d84d94
[AArch64] BFD_RELOC_AARCH64_TLSLE_ADD_LO12 should enable overflow check

BFD_RELOC_AARCH64_TLSLE_ADD_LO12 is used to generate simplest
one-instruction addressing for TLS LE model when tls size is smaller
4K. Linker need to make sure there is no TLS offset overflow.

2015-06-01  Jiong Wang  <jiong.wang@arm.com>

bfd/
  * elfnn-aarch64.c (elfNN_aarch64_howto_table): Set overflow type to
  complain_overflow_unsigned for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
  * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Don't use
  PGOFF for BFD_RELOC_AARCH64_TLSLE_ADD_LO12, that will mask off all
  potential high overflowed bits.

ld/testsuite/
  * ld-aarch64/tprel_add_lo12_overflow.s: New testcase.
  * ld-aarch64/tprel_add_lo12_overflow.d: Nex expectation file.
  * ld-aarch64/aarch64-elf.exp: Run new testcase.
bfd/ChangeLog
bfd/elfnn-aarch64.c
bfd/elfxx-aarch64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/tprel_add_lo12_overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tprel_add_lo12_overflow.s [new file with mode: 0644]
This page took 0.037959 seconds and 4 git commands to generate.