[all-commits] [llvm/llvm-project] 0ddc28: [RISCV] A at plt-B+C: emit R_RISCV_PLT32 even if A is...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Mar 14 15:17:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ddc283a29a7a2d5415a3d363396e39c262a5dc2
https://github.com/llvm/llvm-project/commit/0ddc283a29a7a2d5415a3d363396e39c262a5dc2
Author: Fangrui Song <i at maskray.me>
Date: 2023-03-14 (Tue, 14 Mar 2023)
Changed paths:
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
M llvm/test/MC/RISCV/elf-reloc-plt32.s
Log Message:
-----------
[RISCV] A at plt-B+C: emit R_RISCV_PLT32 even if A is defined
Follow-up to D143226
Currently we incorrectly emit R_RISCV_ADD32/R_RISCV_SUB32.
Emit R_RISCV_PLT32 instead. The new behavior matches x86-64 and AArch64.
More information about the All-commits
mailing list