[llvm][ELF][AArch64] Handle R_AARCH64_PLT32 relocation
authorLeonard Chan <leonardchan@google.com>
Wed, 10 Jun 2020 18:34:16 +0000 (11:34 -0700)
committerLeonard Chan <leonardchan@google.com>
Wed, 10 Jun 2020 18:34:16 +0000 (11:34 -0700)
commit6adc664b9dfecba0d9bff7a51395a67aaadac9d3
tree7bab054f4b85b7305bc6da4d8108356eef7ac5d3
parent52cae05e087b3d4fd02849fc37c387c720055ffb
[llvm][ELF][AArch64] Handle R_AARCH64_PLT32 relocation

This patch allows for usage of the @PLT modifier in AArch64 assembly which
lowers to an R_AARCH64_PLT32 relocation. See D81184 for handling this
relocation in lld.

Differential Revision: https://reviews.llvm.org/D81446
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
llvm/test/MC/AArch64/elf-reloc-plt32.s [new file with mode: 0644]