[lld][ARM] Add support for 16-bit thumb group relocations
authorJohn Brawn <john.brawn@arm.com>
Mon, 12 Jun 2023 15:43:12 +0000 (16:43 +0100)
committerJohn Brawn <john.brawn@arm.com>
Fri, 23 Jun 2023 12:43:04 +0000 (13:43 +0100)
commit5421ab46250691402a48c67e3cc2baf1b2c4ad58
tree3000e38d02fa4c72b5861ad9f2f091d4215a4390
parent89ccfa1b3978fa2c2945dec743401f090a23abec
[lld][ARM] Add support for 16-bit thumb group relocations

This adds support for the following relocations:
 * R_ARM_THM_ALU_ABS_G0_NC
 * R_ARM_THM_ALU_ABS_G1_NC
 * R_ARM_THM_ALU_ABS_G2_NC
 * R_ARM_THM_ALU_ABS_G3
as defined in:
https://github.com/ARM-software/abi-aa/blob/main/aaelf32/aaelf32.rst#5615static-thumb16-relocations

Differential Revision: https://reviews.llvm.org/D153407
lld/ELF/Arch/ARM.cpp
lld/test/ELF/arm-thumb-alu.s [new file with mode: 0644]