1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-26 13:10:46 +03:00
This commit is contained in:
Rui Ueyama 2024-02-18 17:26:42 +09:00
parent 4db866d5c3
commit 79169ea315
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ inline bool is_gcc_lto_obj(Context &ctx, MappedFile *mf) {
if (!ctx.arg.plugin.empty()) {
std::string_view name = data + shdrs[shstrtab_idx].sh_offset + sec.sh_name;
if (name.starts_with(".gnu.lto_.symtab."))
return true;
return true;
}
if (sec.sh_type != SHT_SYMTAB)

View File

@ -359,8 +359,8 @@ void ObjectFile<E>::initialize_sections(Context<E> &ctx) {
if (shdr.sh_link != 0) {
llvm_addrsig = std::move(this->sections[i]);
} else {
Warn(ctx) << *this << ": Ignoring .llvm_addrsig section without SH_LINK; " <<
"was the file processed by strip or objcopy -r?";
Warn(ctx) << *this << ": ignoring .llvm_addrsig section without"
<< " sh_link; was the file processed by strip or objcopy -r?";
}
continue;
}