[PATCH] D113702: [lld-macho] Fix symbol relocs handling for compact unwind's functionAddress

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 11 11:09:20 PST 2021


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

Clang seems to emit all functionAddress relocs as section relocs, but
`ld -r` can turn those relocs into symbol ones. It turns out that we
weren't handling that case correctly when the symbol was a weak def
whose definition did not prevail.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113702

Files:
  lld/MachO/InputFiles.cpp
  lld/test/MachO/weak-definition-gc.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113702.386595.patch
Type: text/x-patch
Size: 9923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211111/318f4d78/attachment.bin>


More information about the llvm-commits mailing list