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
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This probably needs another approval based on the small changes I made to address the warning
Comment Actions
Other then my one comment it LGTM.
ELF/Arch/PPC64.cpp | ||
---|---|---|
743 ↗ | (On Diff #176306) | 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 ↗ | (On Diff #176306) | Error messages should start with a lowercase letter. |
lld/trunk/ELF/Arch/PPC64.cpp | ||
---|---|---|
744 | Please do not write any code after llvm_unreachable as the code is literally unreachable. |
Please do not write any code after llvm_unreachable as the code is literally unreachable.