When linking the linux kernel on ppc64 and probably ppc
ld.lld: error: built-in.a(arch/powerpc/kernel/head_64.o):(.head.text.virt_vectors+0x53C): unrecognized reloc 11
11 is PPC_REL14 and PPC64_REL14
Details
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
This probably needs another approval based on the small changes I made to address the warning
Other then my one comment it LGTM.
ELF/Arch/PPC64.cpp | ||
---|---|---|
743 | inBranchRange is either called from the end of PPC64::needsThunk in which case the type must be either REL14 or REL24, or from the thunk creation framework which means that PPC64::needsThunk must have been true (and the type must have been REL14/REL24) . Because of that I think an llvm_unreachable is more appropriate than an error message. |
ELF/Arch/PPC64.cpp | ||
---|---|---|
743 | Error messages should start with a lowercase letter. |
lld/trunk/ELF/Arch/PPC64.cpp | ||
---|---|---|
744 ↗ | (On Diff #176599) | Please do not write any code after llvm_unreachable as the code is literally unreachable. |
14 24 32 may feel more natural