llvm-project/lld/ELF/Arch
Fangrui Song c8a1dfc484 [ELF][Hexagon] Improve error message for unknown relocations
Like rLLD354040

Previously, for unknown relocation types, in -no-pie/-pie mode, we got something like:

    foo.o: unrecognized relocation ...

In -shared mode:

    error: can't create dynamic relocation ... against symbol: yyy in readonly segment

Delete the default case from Hexagon::getRelExpr and add the error there. We will get consistent error message like `error: unknown relocation (1024) against symbol foo`

Reviewed By: sidneym

Differential Revision: https://reviews.llvm.org/D66275

llvm-svn: 369260
2019-08-19 14:07:14 +00:00
..
AArch64.cpp [ELF][AArch64] Improve error message for unknown relocations 2019-08-15 10:02:54 +00:00
AMDGPU.cpp [Coding style change] Rename variables so that they start with a lowercase letter 2019-07-10 05:00:37 +00:00
ARM.cpp [ELF] Fix variable names in comments after VariableName -> variableName change 2019-07-16 05:50:45 +00:00
AVR.cpp [Coding style change] Rename variables so that they start with a lowercase letter 2019-07-10 05:00:37 +00:00
Hexagon.cpp [ELF][Hexagon] Improve error message for unknown relocations 2019-08-19 14:07:14 +00:00
MSP430.cpp [Coding style change] Rename variables so that they start with a lowercase letter 2019-07-10 05:00:37 +00:00
Mips.cpp [mips] Assign R_TLS type to the R_MIPS_TLS_TPREL_XXX relocations. NFC 2019-07-24 11:37:13 +00:00
MipsArchTree.cpp [ELF] Rename odd variable names "New" after r365730. NFC 2019-08-13 06:19:39 +00:00
PPC.cpp [ELF][PPC] Improve error message for unknown relocations 2019-08-15 05:22:23 +00:00
PPC64.cpp [ELF][PPC] Fix getRelExpr for R_PPC64_REL16_HI 2019-08-17 06:28:03 +00:00
RISCV.cpp [ELF] Fix variable names in comments after VariableName -> variableName change 2019-07-16 05:50:45 +00:00
SPARCV9.cpp [Coding style change] Rename variables so that they start with a lowercase letter 2019-07-10 05:00:37 +00:00
X86.cpp [Coding style change] Rename variables so that they start with a lowercase letter 2019-07-10 05:00:37 +00:00
X86_64.cpp [Coding style change] Rename variables so that they start with a lowercase letter 2019-07-10 05:00:37 +00:00