Skip to content

Commit 9d16e93

Browse files
committed
Do not try to add got entry after emitting error diagnostic
1 parent 4cb8384 commit 9d16e93

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
@@ -1805,6 +1805,7 @@ void elf::postScanRelocations(Ctx &ctx) {
18051805
diag << "both AUTH and non-AUTH GOT entries for '" << sym.getName()
18061806
<< "' requested, but only one type of GOT entry per symbol is "
18071807
"supported";
1808+
return;
18081809
}
18091810
if (flags & NEEDS_GOT_AUTH)
18101811
addGotAuthEntry(ctx, sym);

0 commit comments

Comments
 (0)