[PATCH] D103001: [ELF][RISCV] Resolve branch relocations referencing undefined weak to current location if not using PLT
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 9 17:16:47 PDT 2021
MaskRay marked an inline comment as done.
MaskRay added inline comments.
================
Comment at: lld/ELF/InputSection.cpp:793
+ else if (config->emachine == EM_RISCV)
+ dest = getRISCVUndefinedRelativeWeakVA(type, p) + a;
else
----------------
jrtc27 wrote:
> Hm, this is a better way of writing it but it's inconsistent with ARM and AArch64.
I can change arm/aarch64 to use this style afterward
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103001/new/
https://reviews.llvm.org/D103001
More information about the llvm-commits
mailing list