1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-21 09:57:18 +03:00

[ELF] Improve error message

This commit is contained in:
Rui Ueyama 2021-12-16 20:44:25 +09:00
parent d3adb6ca09
commit e4fc96f691

View File

@ -631,7 +631,7 @@ void InputSection<X86_64>::scan_relocations(Context<X86_64> &ctx) {
Fatal(ctx) << *this
<< ": TLSGD reloc must be followed by PLT32 or GOTPCREL";
if (sym.is_imported)
Fatal(ctx) << *this << ": TLSLD reloc refers external symbol " << sym;
Fatal(ctx) << *this << ": TLSLD reloc refers external symbol: " << sym;
if (ctx.arg.relax && !ctx.arg.shared)
i++;
@ -641,7 +641,7 @@ void InputSection<X86_64>::scan_relocations(Context<X86_64> &ctx) {
case R_X86_64_DTPOFF32:
case R_X86_64_DTPOFF64:
if (sym.is_imported)
Fatal(ctx) << *this << ": DTPOFF reloc refers external symbol " << sym;
Fatal(ctx) << *this << ": DTPOFF reloc refers external symbol: " << sym;
break;
case R_X86_64_GOTTPOFF: {
ctx.has_gottp_rel = true;