[all-commits] [llvm/llvm-project] b1864a: [lld-macho] Ignore duplicate `-rpath` entries (#99...
Daniel Bertalan via All-commits
all-commits at lists.llvm.org
Thu Jul 18 01:49:40 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b1864a8d6ab8bfd346922e36d80e684a4eaf3248
https://github.com/llvm/llvm-project/commit/b1864a8d6ab8bfd346922e36d80e684a4eaf3248
Author: Daniel Bertalan <dani at danielbertalan.dev>
Date: 2024-07-18 (Thu, 18 Jul 2024)
Changed paths:
M lld/MachO/Config.h
M lld/MachO/Driver.cpp
M lld/MachO/Options.td
M lld/test/MachO/link-search-at-rpath.s
M lld/test/MachO/rpath.s
Log Message:
-----------
[lld-macho] Ignore duplicate `-rpath` entries (#99289)
Starting with Xcode 16 (dyld-1122), Apple's binary utilities, e.g.
`dyld_info` (but not dyld itself), will refuse to load binaries built
against the macOS 15 SDK or newer that contain the same `LC_RPATH`
entry multiple times:
https://github.com/apple-oss-distributions/dyld/blob/rel/dyld-1122/mach_o/Policy.cpp#L246-L249
`ld-prime` deduplicates entries (regardless of the deployment target),
we now do the same. We also match `ld-prime`'s and `ld64`'s behavior by
warning on duplicate `-rpath` arguments. This can be disabled by the
LLD-specific `--no-warn-duplicate-rpath` flag.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list