This patch emits the relocation type R_PPC_DTPREL32 for tls variables, which was previously emitting R_PPC_ADDR32 in power-pc 32bit.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
The patch certainly seems reasonable to me. The test case seems like it could be trimmed down a bit (I don't think all the DWARF directives are needed).
llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s | ||
---|---|---|
64 | I think we should keep just this directive and delete other directives that are unrelated to the test. ## Used by DW_OP_form_tls_address .long tls@DTPREL+32768 |
llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s | ||
---|---|---|
64 | I have updated the testcase, as mentioned. |
Comment Actions
Could you please commit the changes.
Name: Varun Erigila
Email: varunkumare99@gmail.com
Thanks
Comment Actions
The test is overly complex as my last comment mentioned. I'll simplify the test case.
I think we should keep just this directive and delete other directives that are unrelated to the test.