mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 19:04:27 +03:00
temporary
This commit is contained in:
parent
f0f72b0f43
commit
c047f9f1d3
@ -164,8 +164,11 @@ void InputSection::scan_relocations() {
|
||||
break;
|
||||
case R_X86_64_32:
|
||||
case R_X86_64_32S:
|
||||
case R_X86_64_64:
|
||||
if (sym.is_imported) {
|
||||
case R_X86_64_64: {
|
||||
if (!sym.is_imported) {
|
||||
rel_types[i] = R_ABS;
|
||||
break;
|
||||
}
|
||||
std::lock_guard lock(sym.mu);
|
||||
if (sym.type == STT_OBJECT) {
|
||||
sym.needs_copyrel = true;
|
||||
@ -174,13 +177,14 @@ void InputSection::scan_relocations() {
|
||||
sym.needs_plt = true;
|
||||
rel_types[i] = R_PLT;
|
||||
}
|
||||
} else {
|
||||
rel_types[i] = R_ABS;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case R_X86_64_PC32:
|
||||
case R_X86_64_PC64:
|
||||
if (sym.is_imported) {
|
||||
case R_X86_64_PC64: {
|
||||
if (!sym.is_imported) {
|
||||
rel_types[i] = R_PC;
|
||||
break;
|
||||
}
|
||||
std::lock_guard lock(sym.mu);
|
||||
if (sym.type == STT_OBJECT) {
|
||||
sym.needs_copyrel = true;
|
||||
@ -189,10 +193,8 @@ void InputSection::scan_relocations() {
|
||||
sym.needs_plt = true;
|
||||
rel_types[i] = R_PLT;
|
||||
}
|
||||
} else {
|
||||
rel_types[i] = R_PC;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case R_X86_64_GOT32:{
|
||||
std::lock_guard lock(sym.mu);
|
||||
sym.needs_got = true;
|
||||
|
Loading…
Reference in New Issue
Block a user