1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-27 10:23:41 +03:00

Allow DTPOFF32 in non-alloc sections

This commit is contained in:
Rui Ueyama 2021-03-24 19:00:01 +09:00
parent d723668a74
commit ab488e1400

View File

@ -453,6 +453,7 @@ void InputSection::apply_reloc_nonalloc(u8 *base) {
else
write(sym.get_addr() + rel.r_addend);
break;
case R_X86_64_DTPOFF32:
case R_X86_64_DTPOFF64:
write(sym.get_addr() + rel.r_addend - out::tls_begin);
break;
@ -472,7 +473,6 @@ void InputSection::apply_reloc_nonalloc(u8 *base) {
case R_X86_64_PLT32:
case R_X86_64_TLSGD:
case R_X86_64_TLSLD:
case R_X86_64_DTPOFF32:
case R_X86_64_TPOFF32:
case R_X86_64_TPOFF64:
case R_X86_64_GOTTPOFF: