Revert "Merge pull request #7424 from kubkon/macho-surgery"

This reverts commit 723e35f11e, reversing
changes made to 0ce43ffd1e.
This commit is contained in:
Anton-4 2024-12-30 14:32:56 +01:00
parent eda4db0589
commit 2dec72a797
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
4 changed files with 87 additions and 188 deletions

View file

@ -1041,13 +1041,14 @@ fn link_macos(
// "--gc-sections",
"-arch",
&arch,
// Suppress warnings, because otherwise it prints:
//
// ld: warning: -undefined dynamic_lookup may not work with chained fixups
//
// We can't disable that option without breaking either x64 mac or ARM mac
"-w",
"-macos_version_min",
&get_macos_version(),
// Suppress fixup chains to ease working out dynamic relocs by the
// surgical linker. In my experience, working with dyld opcodes is
// slightly easier than unpacking compressed info from the __got section
// and fixups load command.
"-no_fixup_chains",
])
.args(input_paths)
.args(extra_link_flags());