Skip to content

Commit 6f44978

Browse files
committed
Do not try to add got entry after emitting error diagnostic
1 parent 77361c7 commit 6f44978

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lld/ELF/Relocations.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,6 +1806,7 @@ void elf::postScanRelocations(Ctx &ctx) {
18061806
diag << "both AUTH and non-AUTH GOT entries for '" << sym.getName()
18071807
<< "' requested, but only one type of GOT entry per symbol is "
18081808
"supported";
1809+
return;
18091810
}
18101811
if (flags & NEEDS_GOT_AUTH)
18111812
addGotAuthEntry(ctx, sym);

0 commit comments

Comments
 (0)