Skip to content

Commit 88c4867

Browse files
committed
Add an assertion against unsupported signed irelative
1 parent bf4f7cc commit 88c4867

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lld/ELF/Relocations.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,8 +1782,11 @@ static bool handleNonPreemptibleIfunc(Ctx &ctx, Symbol &sym, uint16_t flags) {
17821782
// don't try to call the PLT as if it were an ifunc resolver.
17831783
d.type = STT_FUNC;
17841784

1785-
if (flags & NEEDS_GOT)
1785+
if (flags & NEEDS_GOT) {
1786+
assert(!(flags & NEEDS_GOT_AUTH) &&
1787+
"R_AARCH64_AUTH_IRELATIVE is not supported yet");
17861788
addGotEntry(ctx, sym);
1789+
}
17871790
} else if (flags & NEEDS_GOT) {
17881791
// Redirect GOT accesses to point to the Igot.
17891792
sym.gotInIgot = true;

0 commit comments

Comments
 (0)