1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-28 10:54:56 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-27 15:19:50 +09:00
parent b77720bb6f
commit 7998bf16c7

View File

@ -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)));
}