[PATCH] D142880: [RISCV][LLD] Support R_RISCV_SET_ULEB128 and R_RISCV_SUB_ULEB128

Kito Cheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 02:25:11 PDT 2023


kito-cheng updated this revision to Diff 548936.
kito-cheng added a comment.

Changes:

- Rewrite in different way - introduce R_RELOCATE_PAIR_FIRST and R_RELOCATE_PAIR_SECOND.
- Add testcases to cover negative test and ULEB128 relocations in non-alloc section.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142880/new/

https://reviews.llvm.org/D142880

Files:
  lld/ELF/Arch/RISCV.cpp
  lld/ELF/InputSection.cpp
  lld/ELF/Relocations.h
  lld/ELF/Target.cpp
  lld/ELF/Target.h
  lld/test/ELF/riscv-bad-uleb128-ext-len-noalloc.s
  lld/test/ELF/riscv-bad-uleb128-ext-len.s
  lld/test/ELF/riscv-bad-uleb128-no-pair-1.s
  lld/test/ELF/riscv-bad-uleb128-no-pair-2.s
  lld/test/ELF/riscv-bad-uleb128-no-pair-3.s
  lld/test/ELF/riscv-bad-uleb128-no-pair-4.s
  lld/test/ELF/riscv-relax-uleb128.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142880.548936.patch
Type: text/x-patch
Size: 32539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230810/425a1ae5/attachment.bin>


More information about the llvm-commits mailing list