summaryrefslogtreecommitdiffstats
path: root/lld/ELF
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF')
-rw-r--r--lld/ELF/Target.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index a2a609cdd58..ef8ddcc0bca 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -1209,7 +1209,9 @@ AArch64TargetInfo::AArch64TargetInfo() {
PltZeroSize = 32;
}
-bool AArch64TargetInfo::isRelRelative(uint32_t Type) const { return false; }
+bool AArch64TargetInfo::isRelRelative(uint32_t Type) const {
+ return Type == R_AARCH64_PREL32;
+}
bool AArch64TargetInfo::isTlsGlobalDynamicRel(unsigned Type) const {
return Type == R_AARCH64_TLSDESC_ADR_PAGE21 ||
OpenPOWER on IntegriCloud