forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge bitcoin#27999: add macOS test for fixup_chains usage
- Loading branch information
Showing
4 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |