summaryrefslogtreecommitdiff
blob: 85e9d94b35e1368197e0094fc2dbf67727c70496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Allow to fully disable powerpc.

--- ld64-236.3/src/ld/parsers/macho_dylib_file.cpp.orig	2015-01-23 17:59:55.000000000 +0100
+++ ld64-236.3/src/ld/parsers/macho_dylib_file.cpp	2015-01-23 18:00:04.000000000 +0100
@@ -1095,17 +1095,21 @@
 		*subResult = CPU_SUBTYPE_ARM64_ALL;
 		return true;
 	}
+#ifdef SUPPORT_ARCH_ppc
 	if ( Parser<ppc>::validFile(fileContent, false) ) {
 		*result = CPU_TYPE_POWERPC;
 		const macho_header<Pointer32<BigEndian> >* header = (const macho_header<Pointer32<BigEndian> >*)fileContent;
 		*subResult = header->cpusubtype();
 		return true;
 	}
+#endif
+#ifdef SUPPORT_ARCH_ppc64
 	if ( Parser<ppc64>::validFile(fileContent, false) ) {
 		*result = CPU_TYPE_POWERPC64;
 		*subResult = CPU_SUBTYPE_POWERPC_ALL;
 		return true;
 	}
+#endif
 	return false;
 }