Skip to content

Commit

Permalink
[LLD][ELF] Disable elf::reportDuplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 authored Mar 23, 2024
1 parent 924aaa9 commit 316f67b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lld/ELF/Symbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ bool Symbol::shouldReplace(const Defined &other) const {

void elf::reportDuplicate(const Symbol &sym, const InputFile *newFile,
InputSectionBase *errSec, uint64_t errOffset) {
return;

if (config->allowMultipleDefinition)
return;
// In glibc<2.32, crti.o has .gnu.linkonce.t.__x86.get_pc_thunk.bx, which
Expand Down

0 comments on commit 316f67b

Please sign in to comment.