1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 05:46:58 +03:00
This commit is contained in:
Rui Ueyama 2021-04-13 23:37:42 +09:00
parent 9de278cf25
commit 45526b4a21
2 changed files with 7 additions and 8 deletions

View File

@ -369,9 +369,6 @@ void InputSection<I386>::scan_relocations(Context<I386> &ctx) {
sym.flags |= NEEDS_GOT;
rel_types[i] = R_GOTPC;
break;
case R_386_TLS_IE:
Error(ctx) << "TLS reloc is not supported yet: "
<< rel_to_string<I386>(rel.r_type);
case R_386_TLS_GOTIE:
sym.flags |= NEEDS_GOTTP;
rel_types[i] = R_TLS_GOTIE;
@ -391,9 +388,6 @@ void InputSection<I386>::scan_relocations(Context<I386> &ctx) {
case R_386_TLS_LDO_32:
rel_types[i] = R_TPOFF;
break;
case R_386_TLS_LE_32:
Error(ctx) << "TLS reloc is not supported yet: "
<< rel_to_string<I386>(rel.r_type);
case R_386_SIZE32:
rel_types[i] = R_SIZE;
break;
@ -402,6 +396,10 @@ void InputSection<I386>::scan_relocations(Context<I386> &ctx) {
case R_386_TLS_DESC:
Error(ctx) << "tlsdesc reloc is not supported yet: "
<< rel_to_string<I386>(rel.r_type);
break;
default:
Error(ctx) << *this << ": unknown relocation: "
<< rel_to_string<I386>(rel.r_type);
}
}
}

View File

@ -649,7 +649,7 @@ void InputSection<X86_64>::scan_relocations(Context<X86_64> &ctx) {
case R_X86_64_GOTPC32_TLSDESC:
if (memcmp(loc - 3, "\x48\x8d\x05", 3))
Fatal(ctx) << *this << ": GOTPC32_TLSDESC relocation is used"
<< " against an invalid code sequence";
<< " against an invalid code sequence";
if (ctx.arg.relax && !ctx.arg.shared) {
rel_types[i] = R_GOTPC_TLSDESC_RELAX_LE;
@ -669,7 +669,8 @@ void InputSection<X86_64>::scan_relocations(Context<X86_64> &ctx) {
rel_types[i] = R_NONE;
break;
default:
Fatal(ctx) << *this << ": unknown relocation: " << rel.r_type;
Error(ctx) << *this << ": unknown relocation: "
<< rel_to_string<X86_64>(rel.r_type);
}
}
}