Skip to content

Commit 6b070d9

Browse files
committed
Add an assertion against unsupported signed irelative
1 parent ddd16b4 commit 6b070d9

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
@@ -1781,8 +1781,11 @@ static bool handleNonPreemptibleIfunc(Ctx &ctx, Symbol &sym, uint16_t flags) {
17811781
// don't try to call the PLT as if it were an ifunc resolver.
17821782
d.type = STT_FUNC;
17831783

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

0 commit comments

Comments
 (0)