@@ -334,7 +334,7 @@ void elf::maybeWarnUnorderableSymbol(const Symbol *sym) {
334334
335335// Returns true if a symbol can be replaced at load-time by a symbol
336336// with the same name defined in other ELF executable or DSO.
337- bool elf::computeIsPreemptible (const Symbol &sym) {
337+ bool elf::computeIsPreemptible (Ctx &ctx, const Symbol &sym) {
338338 assert (!sym.isLocal () || sym.isPlaceholder ());
339339
340340 // Only symbols with default visibility that appear in dynsym can be
@@ -511,7 +511,7 @@ bool Symbol::shouldReplace(const Defined &other) const {
511511 return !isGlobal () && other.isGlobal ();
512512}
513513
514- void elf::reportDuplicate (const Symbol &sym, const InputFile *newFile,
514+ void elf::reportDuplicate (Ctx &ctx, const Symbol &sym, const InputFile *newFile,
515515 InputSectionBase *errSec, uint64_t errOffset) {
516516 if (ctx.arg .allowMultipleDefinition )
517517 return ;
@@ -555,7 +555,7 @@ void elf::reportDuplicate(const Symbol &sym, const InputFile *newFile,
555555
556556void Symbol::checkDuplicate (const Defined &other) const {
557557 if (isDefined () && !isWeak () && !other.isWeak ())
558- reportDuplicate (*this , other.file ,
558+ reportDuplicate (ctx, *this , other.file ,
559559 dyn_cast_or_null<InputSectionBase>(other.section ),
560560 other.value );
561561}
0 commit comments