mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 05:46:58 +03:00
temporary
This commit is contained in:
parent
b77720bb6f
commit
7998bf16c7
@ -73,6 +73,7 @@ void InputSection::relocate(uint8_t *buf) {
|
||||
*(uint16_t *)loc = dst - cur - 4;
|
||||
break;
|
||||
case R_X86_64_32:
|
||||
case R_X86_64_32S:
|
||||
*(uint32_t *)loc = dst;
|
||||
break;
|
||||
case R_X86_64_PC32:
|
||||
@ -81,6 +82,15 @@ void InputSection::relocate(uint8_t *buf) {
|
||||
case R_X86_64_64:
|
||||
*(uint64_t *)loc = dst;
|
||||
break;
|
||||
case R_X86_64_GOTPC32:
|
||||
case R_X86_64_GOTPCREL:
|
||||
case R_X86_64_GOTPCRELX:
|
||||
case R_X86_64_GOTTPOFF:
|
||||
case R_X86_64_PLT32:
|
||||
case R_X86_64_REX_GOTPCRELX:
|
||||
case R_X86_64_TLSGD:
|
||||
case R_X86_64_TPOFF32:
|
||||
break;
|
||||
default:
|
||||
error(toString(this) + ": unknown relocation: " + std::to_string(rel.getType(false)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user