Skip to content

Commit 54bcb64

Browse files
committed
Fix build after #118424
1 parent e0252c6 commit 54bcb64

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lld/ELF/Arch/AArch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ RelExpr AArch64::getRelExpr(RelType type, const Symbol &s,
204204
return R_GOT;
205205
case R_AARCH64_AUTH_LD64_GOT_LO12_NC:
206206
case R_AARCH64_AUTH_GOT_ADD_LO12_NC:
207-
return R_AARCH64_AUTH_GOT;
207+
return RE_AARCH64_AUTH_GOT;
208208
case R_AARCH64_LD64_GOTPAGE_LO15:
209209
return RE_AARCH64_GOT_PAGE;
210210
case R_AARCH64_ADR_GOT_PAGE:

lld/ELF/InputSection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ uint64_t InputSectionBase::getRelocTargetVA(Ctx &ctx, const Relocation &r,
783783
case RE_ARM_SBREL:
784784
return r.sym->getVA(ctx, a) - getARMStaticBase(*r.sym);
785785
case R_GOT:
786-
case R_AARCH64_AUTH_GOT:
786+
case RE_AARCH64_AUTH_GOT:
787787
case R_RELAX_TLS_GD_TO_IE_ABS:
788788
return r.sym->getGotVA(ctx) + a;
789789
case RE_LOONGARCH_GOT:

lld/ELF/Relocations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ void RelocationScanner::processAux(RelExpr expr, RelType type, uint64_t offset,
11051105
// Many LoongArch TLS relocs reuse the RE_LOONGARCH_GOT type, in which
11061106
// case the NEEDS_GOT flag shouldn't get set.
11071107
bool needsGotAuth =
1108-
(expr == R_AARCH64_AUTH_GOT || expr == R_AARCH64_AUTH_GOT_PAGE_PC);
1108+
(expr == RE_AARCH64_AUTH_GOT || expr == RE_AARCH64_AUTH_GOT_PAGE_PC);
11091109
uint16_t flags = sym.flags.load(std::memory_order_relaxed);
11101110
if (!(flags & NEEDS_GOT)) {
11111111
sym.setFlags(needsGotAuth ? (NEEDS_GOT | NEEDS_GOT_AUTH) : NEEDS_GOT);

0 commit comments

Comments
 (0)