[PATCH] D112451: implemented R_AARCH64_ADR_PREL_PG_HI21, R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC

Kelvin Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 25 07:09:43 PDT 2021


Kelvinyu1117 created this revision.
Kelvinyu1117 added reviewers: sgraenitz, lhames.
Herald added subscribers: hiraditya, kristof.beyls.
Kelvinyu1117 requested review of this revision.
Herald added a project: LLVM.

I have implemented serveral relocation types with a test case (for R_AARCH64_ADR_PREL_PG_HI21 and R_AARCH64_ADD_ABS_LO12_NC). But it's a bit buggy that for
the R_AARCH64_ADR_PREL_PG_HI21_NC, it seems that it always fall into OutOfRangeError, my logic should be correct accroding to the specification of ARM. Therefore,
I would like to ask for a review and gain some insights for debugging the code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112451

Files:
  llvm/include/llvm/ExecutionEngine/JITLink/aarch64.h
  llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
  llvm/test/ExecutionEngine/JITLink/AArch64/ELF_aarch64_test1.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112451.381983.patch
Type: text/x-patch
Size: 4757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211025/3fbc6f44/attachment.bin>


More information about the llvm-commits mailing list