[AArch64] Generate DT_TEXTREL for relocation against read-only section
authorJiong Wang <jiong.wang@arm.com>
Tue, 23 Jun 2015 11:12:06 +0000 (12:12 +0100)
committerJiong Wang <jiong.wang@arm.com>
Tue, 23 Jun 2015 11:12:06 +0000 (12:12 +0100)
commitc217058957a45a93481da35e1531ed120750d739
tree9e94faaacc0df0173b25dcc96cbefff844ca98dd
parente5ee3fe285c698f1ce3d9bbb596bcda6219f5f3a
[AArch64] Generate DT_TEXTREL for relocation against read-only section

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

  bfd/
    * elfnn-aarch64.c (aarch64_readonly_dynrelocs): New function.
    (elfNN_aarch64_size_dynamic_sections): Traverse hash table to check
    relocations against read-only sections.

  ld/testsuite/
    * ld-aarch64/dt_textrel.s: New testcase.
    * ld-aarch64/dt_textrel.d: New expectation file.
    * ld-aarch64/aarch64-elf.exp: Run new testcase.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/dt_textrel.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/dt_textrel.s [new file with mode: 0644]