1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-28 19:04:27 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-12-13 10:37:05 +09:00
parent 8add7929af
commit dd91a3f293

View File

@ -53,6 +53,8 @@ void InputSection::copy_buf() {
*(u32 *)loc = L + A - P;
break;
case R_X86_64_GOTPCREL:
case R_X86_64_GOTPCRELX:
case R_X86_64_REX_GOTPCRELX:
*(u32 *)loc = G + A - P;
break;
case R_X86_64_32:
@ -113,10 +115,6 @@ void InputSection::copy_buf() {
case R_X86_64_GOTPC32:
*(u32 *)loc = GOT + A - P;
break;
case R_X86_64_GOTPCRELX:
case R_X86_64_REX_GOTPCRELX:
*(u32 *)loc = G + A - P;
break;
default:
error(to_string(this) + ": unknown relocation: " + std::to_string(rel.r_type));
}