Several instructions with potential TLS relocations were missing. This issue was found when building the Canadian LLVM toolchain.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The change LGTM, we may want to fix the error message.
lld/ELF/Arch/Hexagon.cpp | ||
---|---|---|
238 | This error message is inaccurate, right? In this case it's not that relocation mode. If this error case applies to multiple relocations we should probably describe those here instead. I'm not sure which ones apply but R_HEX_{16_X,TPREL_16} could work. Are there lld idioms about the format of these error messages that we should conform to? |
lld/ELF/Arch/Hexagon.cpp | ||
---|---|---|
238 | It could be changed to 16_X relocation type. |
lld/ELF/Arch/Hexagon.cpp | ||
---|---|---|
238 | unrecognized instruction for 16_X relocation -- like that? If so, that makes sense. |
This error message is inaccurate, right? In this case it's not that relocation mode. If this error case applies to multiple relocations we should probably describe those here instead.
I'm not sure which ones apply but R_HEX_{16_X,TPREL_16} could work. Are there lld idioms about the format of these error messages that we should conform to?