[PATCH] D97103: [lld-macho] Don't emit rebase opcodes for subtractor minuend relocs

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 19:11:04 PST 2021


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a project: lld-macho.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Also add a few asserts to verify that we are indeed handling an
UNSIGNED relocation as the minued. I haven't made it an actual
user-facing error since I don't think llvm-mc is capable of generating
SUBTRACTOR relocations without an associated UNSIGNED.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97103

Files:
  lld/MachO/Arch/ARM64.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputSection.cpp
  lld/MachO/Target.h
  lld/MachO/Writer.cpp
  lld/test/MachO/reloc-subtractor.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97103.325138.patch
Type: text/x-patch
Size: 4901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210220/d61faa94/attachment-0001.bin>


More information about the llvm-commits mailing list