Add R_AARCH64_P32_MOVW_PREL_* ELF32 relocs
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 28 Nov 2018 19:35:04 +0000 (19:35 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 14 Jun 2019 11:02:19 +0000 (12:02 +0100)
commite30d1fa1bfb1ff2e225cfac9226c357f2cf07a26
tree01c3ad124c43de1bed93213c591243c950fe5571
parentbcc5a6eb668e560a0020114b6dc261ef494981ba
Add R_AARCH64_P32_MOVW_PREL_* ELF32 relocs

These ilp32 relocations were missing for some reason.

bfd/ChangeLog:

* elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.

include/ChangeLog:

* elf/aarch64.h (R_AARCH64_P32_MOVW_PREL_G0): Define.
(R_AARCH64_P32_MOVW_PREL_G0_NC): Define.
(R_AARCH64_P32_MOVW_PREL_G1): Define.

ld/ChangeLog:

* testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
* testsuite/ld-aarch64/emit-relocs-22.d: New test.
* testsuite/ld-aarch64/emit-relocs-22.s: New test.
* testsuite/ld-aarch64/emit-relocs-23.d: New test.
* testsuite/ld-aarch64/emit-relocs-23.s: New test.
bfd/ChangeLog
bfd/elfnn-aarch64.c
include/ChangeLog
include/elf/aarch64.h
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/emit-relocs-22.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-22.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-23.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-23.s [new file with mode: 0644]