mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 19:04:27 +03:00
temporary
This commit is contained in:
parent
8add7929af
commit
dd91a3f293
@ -53,6 +53,8 @@ void InputSection::copy_buf() {
|
|||||||
*(u32 *)loc = L + A - P;
|
*(u32 *)loc = L + A - P;
|
||||||
break;
|
break;
|
||||||
case R_X86_64_GOTPCREL:
|
case R_X86_64_GOTPCREL:
|
||||||
|
case R_X86_64_GOTPCRELX:
|
||||||
|
case R_X86_64_REX_GOTPCRELX:
|
||||||
*(u32 *)loc = G + A - P;
|
*(u32 *)loc = G + A - P;
|
||||||
break;
|
break;
|
||||||
case R_X86_64_32:
|
case R_X86_64_32:
|
||||||
@ -113,10 +115,6 @@ void InputSection::copy_buf() {
|
|||||||
case R_X86_64_GOTPC32:
|
case R_X86_64_GOTPC32:
|
||||||
*(u32 *)loc = GOT + A - P;
|
*(u32 *)loc = GOT + A - P;
|
||||||
break;
|
break;
|
||||||
case R_X86_64_GOTPCRELX:
|
|
||||||
case R_X86_64_REX_GOTPCRELX:
|
|
||||||
*(u32 *)loc = G + A - P;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
error(to_string(this) + ": unknown relocation: " + std::to_string(rel.r_type));
|
error(to_string(this) + ": unknown relocation: " + std::to_string(rel.r_type));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user