Skip to content

Commit d7336f6

Browse files
committed
Add an assertion against unsupported signed irelative
1 parent e1f8260 commit d7336f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lld/ELF/Relocations.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1793,8 +1793,11 @@ static bool handleNonPreemptibleIfunc(Ctx &ctx, Symbol &sym, uint16_t flags) {
17931793
// don't try to call the PLT as if it were an ifunc resolver.
17941794
d.type = STT_FUNC;
17951795

1796-
if (flags & NEEDS_GOT)
1796+
if (flags & NEEDS_GOT) {
1797+
assert(!(flags & NEEDS_GOT_AUTH) &&
1798+
"R_AARCH64_AUTH_IRELATIVE is not supported yet");
17971799
addGotEntry(ctx, sym);
1800+
}
17981801
} else if (flags & NEEDS_GOT) {
17991802
// Redirect GOT accesses to point to the Igot.
18001803
sym.gotInIgot = true;

0 commit comments

Comments
 (0)