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:
parent
d3adb6ca09
commit
e4fc96f691
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user