mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-09 21:47:34 +01:00
build: support -no_fixup_chains in ld64
Patch in suport for using -no_fixup_chains, with ld64. This option just seems to be missing from our version, as it exists in later releases. This is needed so we can disable fixup_chains in our security checks.
This commit is contained in:
23
depends/patches/native_cctools/no_fixup_chains.patch
Normal file
23
depends/patches/native_cctools/no_fixup_chains.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
commit 5860b35ff6c7241d1c35a1b3197b45e5c9ff86cf
|
||||
Author: fanquake <fanquake@gmail.com>
|
||||
Date: Thu Jun 29 11:52:43 2023 +0100
|
||||
|
||||
ld64: add support for -no_fixup_chains
|
||||
|
||||
This is added in later versions, and is required if we want to be able
|
||||
to disable fixup_chains, for use in security tests.
|
||||
|
||||
diff --git a/cctools/ld64/src/ld/Options.cpp b/cctools/ld64/src/ld/Options.cpp
|
||||
index 15e8e88..b6580af 100644
|
||||
--- a/cctools/ld64/src/ld/Options.cpp
|
||||
+++ b/cctools/ld64/src/ld/Options.cpp
|
||||
@@ -4128,6 +4128,9 @@ void Options::parse(int argc, const char* argv[])
|
||||
else if ( strcmp(arg, "-fixup_chains") == 0 ) {
|
||||
fMakeChainedFixups = true;
|
||||
}
|
||||
+ else if ( strcmp(arg, "-no_fixup_chains") == 0 ) {
|
||||
+ fMakeChainedFixups = false;
|
||||
+ }
|
||||
else if (strcmp(arg, "-debug_variant") == 0) {
|
||||
fDebugVariant = true;
|
||||
}
|
||||
Reference in New Issue
Block a user