Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Object/RelocationResolver.cpp | ||
---|---|---|
468 | Is the 0x00 a typo or for symmetry? |
Is there a test using this relocation type? We don't add unneeded ones.
llvm/lib/Object/RelocationResolver.cpp | ||
---|---|---|
468 | & 0xff is needed |
Sorry, I can't find a .ll file to emit R_RISCV_SET8. Any suggestions?
https://github.com/llvm/llvm-project/blob/main/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll emits R_RISCV_SET6, If R_RISCV_SET6 is not included in RelocationResolver.cpp, llvm-dwarfdump has the following error. I guess R_RISCV_SET8 may have a similar error.
warning: failed to compute relocation: R_RISCV_SET6, Invalid data was encountered while parsing the file
In addition, this question comes from Julia(like: https://github.com/JuliaLang/julia/issues/35460) @alexfanqi is helping to find testcases.
llvm/lib/Object/RelocationResolver.cpp | ||
---|---|---|
468 | Thanks, updated |
llvm/test/MC/RISCV/cfi-advance.s | ||
---|---|---|
6 | ditto nearby | |
7 | The negative pattern is not needed. The no-error state is implied by llvm-dwarfdump rather than not llvm-dwarfdump You may change llvm-dwarfdump --debug-info --debug-line to test some properties to best leverage the test (https://maskray.me/blog/2021-08-08-toolchain-testing "A regression test which simply runs the compiler and expects it not to crash has low utilization. It is often better to additionally test some properties of the produced object file.") |
Is the 0x00 a typo or for symmetry?