[PATCH] D130683: [lld-macho] Allow linking with ABI compatible architectures

Vincent Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 23:48:27 PDT 2022


thevinster created this revision.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
thevinster updated this revision to Diff 448243.
thevinster added a comment.
thevinster edited the summary of this revision.
Herald added a subscriber: pengfei.
thevinster published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

clang-format


Linking fails when targeting `x86_64-apple-darwin` for runtimes. The issue 
is that LLD strictly assumes the target architecture be present in the tbd 
files (which isn't always true). For example, when targeting `x86_64h`, it should 
work with `x86_64` because they are ABI compatible. This is also inline with what 
ld64 does.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130683

Files:
  lld/MachO/Config.h
  lld/MachO/Driver.cpp
  lld/MachO/InputFiles.cpp
  lld/test/MachO/tapi-link.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130683.448243.patch
Type: text/x-patch
Size: 5891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220728/fbd4e7bf/attachment.bin>


More information about the llvm-commits mailing list