Files
nixpkgs/pkgs/by-name/ld/ld64/patches/0017-Fix-dyldinfo-build.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

38 lines
1.4 KiB
Diff

From 477911db0045e8b1925fcd5db523aab2888fdcc9 Mon Sep 17 00:00:00 2001
From: Randy Eckenrode <randy@largeandhighquality.com>
Date: Sun, 17 Nov 2024 10:02:34 -0500
Subject: [PATCH 17/18] Fix dyldinfo build
`isSubType` was removed in 907, but the fix is simple. This mirrors the
changes that were made in that update to other parts of ld64.
---
src/other/dyldinfo.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/other/dyldinfo.cpp b/src/other/dyldinfo.cpp
index dbfd0de..96aa109 100644
--- a/src/other/dyldinfo.cpp
+++ b/src/other/dyldinfo.cpp
@@ -427,7 +427,7 @@ DyldInfoPrinter<A>::DyldInfoPrinter(const uint8_t* fileContent, uint32_t fileLen
if ( printArch ) {
for (const ArchInfo* t=archInfoArray; t->archName != NULL; ++t) {
if ( (cpu_type_t)fHeader->cputype() == t->cpuType ) {
- if ( t->isSubType && ((cpu_subtype_t)fHeader->cpusubtype() != t->cpuSubType) )
+ if ( ((cpu_subtype_t)fHeader->cpusubtype() != t->cpuSubType) )
continue;
printf("for arch %s:\n", t->archName);
}
@@ -2801,8 +2801,7 @@ int main(int argc, const char* argv[])
for (const ArchInfo* t=archInfoArray; t->archName != NULL; ++t) {
if ( strcmp(t->archName,arch) == 0 ) {
sPreferredArch = t->cpuType;
- if ( t->isSubType )
- sPreferredSubArch = t->cpuSubType;
+ sPreferredSubArch = t->cpuSubType;
found = true;
break;
}
--
2.47.2