mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 10:27:48 +03:00
temporary
This commit is contained in:
parent
84582a460a
commit
92e3549c88
@ -261,7 +261,7 @@ void ObjectFile::hanlde_undefined_weak_symbols() {
|
||||
if (esym.isUndefined() && esym.getBinding() == STB_WEAK) {
|
||||
std::lock_guard lock(sym.mu);
|
||||
|
||||
bool is_new = !sym.file;
|
||||
bool is_new = !sym.file || sym.file->is_in_archive();
|
||||
bool tie_but_higher_priority =
|
||||
!is_new && sym.is_undef_weak && this->priority < sym.file->priority;
|
||||
|
||||
|
10
main.cc
10
main.cc
@ -580,9 +580,15 @@ int main(int argc, char **argv) {
|
||||
out::plt->symbols.reserve(out::plt->size / 16);
|
||||
|
||||
for (ObjectFile *file : files) {
|
||||
for (Symbol *sym : file->symbols) {
|
||||
llvm::outs() << "file=" << file->name << "\n";
|
||||
if (file->name == "lc-address.o")
|
||||
for (Symbol *sym : file->symbols)
|
||||
llvm::outs() << "sym=" << sym->name << "\n";
|
||||
}
|
||||
|
||||
//_nl_current_LC_ADDRESS
|
||||
for (ObjectFile *file : files) {
|
||||
for (Symbol *sym : file->symbols) {
|
||||
// _nl_current_LC_ADDRESS
|
||||
|
||||
if (sym->file != file)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user