Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loongarch: force to generate relocation pairs for data sections
This fixes rustc code generation for "reltable" entries, like: i32 trunc ( i64 sub ( i64 ptrtoint (<{ [1 x i8] }>* @alloc47 to i64), i64 ptrtoint ([5 x i32]* @reltable.func to i64) ) to i32 ) We need either an ADD32/SUB32 pair or a PUSH_PCREL/POP pair, so currently we don't have any better solution for this. RISC-V uses a single PCREL reloc for this OTOH. See loongson/LoongArch-Documentation#9.
- Loading branch information