1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Create a dummy stub/ppc64le-darwin.macho-fold.h so that upx builds again.

This commit is contained in:
Markus F.X.J. Oberhumer 2016-09-19 10:54:23 +02:00
parent eba65a94e6
commit f95c92b431
2 changed files with 13 additions and 114 deletions

View File

@ -123,7 +123,7 @@ STUBS += powerpc-linux.kernel.vmlinux-head.h
STUBS += powerpc-linux.kernel.vmlinux.h
STUBS += ppc64le-darwin.dylib-entry.h
STUBS += ppc64le-darwin.macho-entry.h
#STUBS += ppc64le-darwin.macho-fold.h
STUBS += ppc64le-darwin.macho-fold.h
STUBS += ppc64le-linux.elf-entry.h
STUBS += ppc64le-linux.elf-fold.h
STUBS += ppc64le-linux.kernel.vmlinux-head.h
@ -1319,7 +1319,9 @@ ppc64le-darwin.macho-entry.h : $(srcdir)/src/$$T.S
$(call tc,bin2h) tmp/$T.bin $@
ppc64le-darwin.macho-fold.h : tmp/$$T.o tmp/ppc64le-darwin.macho-main.o
$(call tc,ld) --no-warn-mismatch --strip-all --oformat binary -Map tmp/$T.map $(filter %.o,$^) -o tmp/$T.bin
# FIXME: undefined reference to `_savegpr0_28' etc.
# $(call tc,ld) --no-warn-mismatch --strip-all --oformat binary -Map tmp/$T.map $(filter %.o,$^) -o tmp/$T.bin
echo "FIXME" > tmp/$T.bin
chmod a-x tmp/$T.bin
$(call tc,bin2h) tmp/$T.bin $@

View File

@ -1,11 +1,11 @@
/* ppc64le-darwin.macho-fold.h
created from ppc64le-darwin.macho-fold.bin, 1664 (0x680) bytes
created from ppc64le-darwin.macho-fold.bin, 6 (0x6) bytes
This file is part of the UPX executable compressor.
Copyright (C) 1996-2016 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 1996-2016 Laszlo Molnar
Copyright (C) 2000-2016 John F. Reiser
Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 1996-2015 Laszlo Molnar
Copyright (C) 2000-2015 John F. Reiser
All Rights Reserved.
UPX and the UCL library are free software; you can redistribute them
@ -31,113 +31,10 @@
*/
#define STUB_PPC64LE_DARWIN_MACHO_FOLD_SIZE 1664
#define STUB_PPC64LE_DARWIN_MACHO_FOLD_ADLER32 0x2e3a279d
#define STUB_PPC64LE_DARWIN_MACHO_FOLD_CRC32 0xf61322eb
#define STUB_PPC64LE_DARWIN_MACHO_FOLD_SIZE 6
#define STUB_PPC64LE_DARWIN_MACHO_FOLD_ADLER32 0x05f20184
#define STUB_PPC64LE_DARWIN_MACHO_FOLD_CRC32 0x2600196a
unsigned char stub_ppc64le_darwin_macho_fold[1664] = {
/* 0x0000 */ 72, 0, 0,105, 40, 6, 0,208, 76,130, 0, 32, 84,132,240,191,
/* 0x0010 */ 77,130, 0, 32, 60, 0, 0, 16,124, 4, 0, 64, 65,128, 0, 8,
/* 0x0020 */ 124, 4, 3,120, 56,165, 1, 32,124,103, 27,120, 56, 99,255,252,
/* 0x0030 */ 124,137, 3,166, 72, 0, 0, 28, 84, 75, 2,186,125, 99, 88, 80,
/* 0x0040 */ 125,107, 58, 20, 81, 98, 1,186,144, 67, 0, 0, 78, 64, 0, 32,
/* 0x0050 */ 132, 67, 0, 4, 84, 75, 85,190,124, 11, 40, 64, 65,162,255,220,
/* 0x0060 */ 66, 0,255,240, 78,128, 0, 32, 56, 33, 0, 24, 57, 32, 0, 0,
/* 0x0070 */ 149, 33,255,252,124, 41, 11,120,125, 8, 2,166,128,159,255,248,
/* 0x0080 */ 124,100,248, 80,128,195, 0, 24, 40, 6, 8, 0, 65,129, 0, 8,
/* 0x0090 */ 56,192, 8, 0,124, 61, 11,120,124, 38, 8, 80,124, 37, 11,120,
/* 0x00a0 */ 56, 33,255,232,127,231,251,120, 72, 0, 4, 61,127,161,235,120,
/* 0x00b0 */ 128, 67, 0, 0,124, 73, 3,166,128, 67, 0,136,124, 79,241, 32,
/* 0x00c0 */ 128, 67, 0,140,124, 65, 3,166,128, 67, 0,144,124, 72, 3,166,
/* 0x00d0 */ 184,131, 0, 24,128, 3, 0, 8,128, 67, 0, 16,128, 99, 0, 20,
/* 0x00e0 */ 78,128, 4, 32,124,199, 51,120, 56,192, 0, 0, 56, 0, 0,153,
/* 0x00f0 */ 72, 0, 0, 16,125, 9, 67,120, 57, 0, 0, 0, 56, 0, 0,197,
/* 0x0100 */ 68, 0, 0, 2, 56, 96,255,255, 78,128, 0, 32, 56, 0, 0, 1,
/* 0x0110 */ 75,255,255,240, 56, 0, 0, 3, 75,255,255,232, 56, 0, 0, 5,
/* 0x0120 */ 75,255,255,224, 56, 0, 0, 6, 75,255,255,216, 56, 0, 0, 74,
/* 0x0130 */ 75,255,255,208,124, 8, 2,166,148, 33,255,240,144, 1, 0, 20,
/* 0x0140 */ 128, 3, 0, 0,129, 35, 0, 4,127,128, 40, 64, 64,188, 0, 12,
/* 0x0150 */ 56, 96, 0,127, 75,255,255,185, 47,133, 0, 0, 65,158, 0, 28,
/* 0x0160 */ 124,169, 3,166,136, 9, 0, 0, 57, 41, 0, 1,152, 4, 0, 0,
/* 0x0170 */ 56,132, 0, 1, 66, 0,255,240,128, 3, 0, 0,129, 35, 0, 4,
/* 0x0180 */ 124, 5, 0, 80,144, 3, 0, 0,128, 1, 0, 20,125, 41, 42, 20,
/* 0x0190 */ 124, 8, 3,166, 56, 33, 0, 16,145, 35, 0, 4, 78,128, 0, 32,
/* 0x01a0 */ 124, 8, 2,166,148, 33,255,192,144, 1, 0, 68,128, 4, 0, 0,
/* 0x01b0 */ 191,129, 0, 48, 47,128, 0, 0,124,159, 35,120,124,126, 27,120,
/* 0x01c0 */ 124,188, 43,120,124,221, 51,120, 65,158, 1, 36, 56,160, 0, 12,
/* 0x01d0 */ 127,195,243,120, 56,129, 0, 16, 75,255,255, 93,129, 33, 0, 16,
/* 0x01e0 */ 128,161, 0, 20, 47,137, 0, 0, 64,190, 0, 36, 60, 0, 33, 88,
/* 0x01f0 */ 96, 0, 80, 85,127,133, 0, 0, 64,190, 0, 28,128, 30, 0, 0,
/* 0x0200 */ 47,128, 0, 0, 65,190, 0,232, 72, 0, 0, 12, 47,133, 0, 0,
/* 0x0210 */ 64,190, 0, 12, 56, 96, 0,127, 75,255,254,245,127, 5, 72, 64,
/* 0x0220 */ 65,185,255,244,128, 31, 0, 0,127,137, 0, 64, 65,189,255,232,
/* 0x0230 */ 128, 31, 0, 4, 64,152, 0,136,124,164, 43,120,128,126, 0, 4,
/* 0x0240 */ 124, 5, 3,120, 56,193, 0, 32,136,225, 0, 24,145, 33, 0, 32,
/* 0x0250 */ 127,136, 3,166, 78,128, 0, 33, 47,131, 0, 0, 64,190,255,184,
/* 0x0260 */ 128,129, 0, 32,128, 1, 0, 16,127,132, 0, 0, 64,190,255,168,
/* 0x0270 */ 136,193, 0, 25, 49, 61,255,255,124, 9,233, 16,125, 38, 0,208,
/* 0x0280 */ 85, 41, 15,254,125, 43, 0, 57, 65,162, 0, 20,128,127, 0, 4,
/* 0x0290 */ 136,161, 0, 26,127,168, 3,166, 78,128, 0, 33,128, 30, 0, 4,
/* 0x02a0 */ 129, 97, 0, 20,129, 62, 0, 0,124, 0, 90, 20,125, 43, 72, 80,
/* 0x02b0 */ 144, 30, 0, 4,145, 62, 0, 0, 72, 0, 0, 16,124, 4, 3,120,
/* 0x02c0 */ 127,195,243,120, 75,255,254,113,129, 97, 0, 16,129, 63, 0, 0,
/* 0x02d0 */ 128, 31, 0, 4,125, 43, 72, 80, 47,137, 0, 0,124, 0, 90, 20,
/* 0x02e0 */ 144, 31, 0, 4,145, 63, 0, 0, 75,255,254,224,128, 1, 0, 68,
/* 0x02f0 */ 187,129, 0, 48,124, 8, 3,166, 56, 33, 0, 64, 78,128, 0, 32,
/* 0x0300 */ 124, 8, 2,166,148, 33,255,176,144, 1, 0, 84,128, 3, 0, 16,
/* 0x0310 */ 190, 65, 0, 24, 58,224, 0, 0,125,128, 0, 38,127,151, 0, 64,
/* 0x0320 */ 145,129, 0, 20,124,122, 27,120,124,146, 35,120,124,187, 43,120,
/* 0x0330 */ 124,211, 51,120,124,244, 59,120,125, 21, 67,120,125, 54, 75,120,
/* 0x0340 */ 59,195, 0, 28, 59, 0, 0, 0, 64,156, 1,124,129, 62, 0, 0,
/* 0x0350 */ 47,137, 0, 1, 64,190, 1, 48,129, 62, 0, 24,129,126, 0, 36,
/* 0x0360 */ 85, 61, 5, 62,127,139,234, 20, 46, 28, 0, 0,128, 30, 0, 28,
/* 0x0370 */ 145, 97, 0, 8,127, 41, 2, 20,145, 33, 0, 12,127,253, 72, 80,
/* 0x0380 */ 65,146, 0, 76, 47,155, 0, 0, 64,190, 0, 16, 47,139, 0, 0,
/* 0x0390 */ 56,192, 0, 18, 64,158, 0, 8, 56,192, 16, 18, 47,139, 0, 0,
/* 0x03a0 */ 126,103,155,120, 64,158, 0, 8, 56,224,255,255,129, 30, 0, 32,
/* 0x03b0 */ 127,227,251,120,125, 8,146, 20,127,132,227,120, 56,160, 0, 3,
/* 0x03c0 */ 75,255,253, 53,127,159, 24, 0, 64,158, 0,124, 47,155, 0, 0,
/* 0x03d0 */ 65,158, 0, 52,128, 30, 0, 36, 47,128, 0, 0, 65,158, 0, 40,
/* 0x03e0 */ 128, 30, 0, 32, 47,128, 0, 0, 64,158, 0, 8,147,244, 0, 0,
/* 0x03f0 */ 127, 99,219,120, 56,129, 0, 8,126,165,171,120,126,198,179,120,
/* 0x0400 */ 75,255,253,161,124, 28, 0,208,112, 29, 15,255,125, 63,226, 20,
/* 0x0410 */ 65,130, 0, 24,127,169, 3,166, 56, 0, 0, 0,152, 9, 0, 0,
/* 0x0420 */ 57, 41, 0, 1, 66, 0,255,248, 65,178, 0, 36,128,190, 0, 44,
/* 0x0430 */ 127,227,251,120,127,132,227,120, 75,255,252,245, 47,131, 0, 0,
/* 0x0440 */ 65,190, 0, 12, 56, 96, 0,127, 75,255,252,197,124, 28,234, 20,
/* 0x0450 */ 127,255, 2, 20,127,159,200, 64, 64,188, 0, 84,128,190, 0, 44,
/* 0x0460 */ 124,159,200, 80,127,227,251,120, 56,192, 16, 18, 56,224,255,255,
/* 0x0470 */ 57, 0, 0, 0, 75,255,252,129,127,159, 24, 0, 65,190, 0, 48,
/* 0x0480 */ 75,255,255,196, 56, 9,255,252, 43,128, 0, 1, 65,157, 0, 32,
/* 0x0490 */ 128, 30, 0, 8, 47,128, 0, 1, 64,190, 0, 20,128, 30, 0, 12,
/* 0x04a0 */ 47,128, 0, 40, 64,190, 0, 8, 58,254, 0, 16,128, 26, 0, 16,
/* 0x04b0 */ 59, 24, 0, 1,127,152, 0, 64,128, 30, 0, 4,127,222, 2, 20,
/* 0x04c0 */ 75,255,254,136,128, 1, 0, 84,129,129, 0, 20,126,227,187,120,
/* 0x04d0 */ 124, 8, 3,166,186, 65, 0, 24,125,128,129, 32, 56, 33, 0, 80,
/* 0x04e0 */ 78,128, 0, 32,148, 33,255,192,144,129, 0, 8,124, 8, 2,166,
/* 0x04f0 */ 129, 97, 0, 8,144, 1, 0, 68, 57,107,255,232, 56, 3, 0, 24,
/* 0x0500 */ 145, 97, 0, 16,144, 1, 0, 20,191, 97, 0, 44,128, 3, 0, 24,
/* 0x0510 */ 129, 65, 0, 20,125, 60, 75,120,129, 33, 0, 16,124,191, 43,120,
/* 0x0520 */ 125, 27, 67,120,124,253, 59,120,124,229, 59,120, 56, 97, 0, 16,
/* 0x0530 */ 56,129, 0, 24,124,222, 51,120, 56,192, 0, 0,145, 65, 0, 36,
/* 0x0540 */ 144, 1, 0, 24,145, 33, 0, 32,147,225, 0, 28, 75,255,252, 85,
/* 0x0550 */ 127,105,219,120,127,135,227,120,127,227,251,120,127,168,235,120,
/* 0x0560 */ 56,128, 0, 0, 56,161, 0, 32, 56,192,255,255, 75,255,253,149,
/* 0x0570 */ 129, 95, 0, 16, 57, 96, 0, 0,127,139, 80, 64,124,124, 27,120,
/* 0x0580 */ 59, 96, 0, 0, 57, 63, 0, 28, 64,156, 0,224,128, 9, 0, 0,
/* 0x0590 */ 57,107, 0, 1, 47,128, 0, 14,127, 11, 80, 64, 64,190, 0,192,
/* 0x05a0 */ 128,105, 0, 8, 56,128, 0, 0,124,105, 26, 20, 56,160, 0, 0,
/* 0x05b0 */ 75,255,251,109,124,125, 27,121, 65,128, 0, 32,127,163,235,120,
/* 0x05c0 */ 127,228,251,120,127,197,243,120,127,102,219,120, 75,255,251, 25,
/* 0x05d0 */ 127,158, 24, 0, 65,190, 0, 20, 56, 96, 0,127, 75,255,251, 49,
/* 0x05e0 */ 131,105, 0, 8, 75,255,255,216,128, 31, 0, 0, 61, 32,202,254,
/* 0x05f0 */ 97, 41,186,190,127,128, 72, 0, 64,158, 0, 52,129, 95, 0, 4,
/* 0x0600 */ 57, 96, 0, 0,127,139, 80, 64, 57, 63, 0, 8, 64,156, 0, 32,
/* 0x0610 */ 128, 9, 0, 0, 57,107, 0, 1, 47,128, 0, 18,127, 11, 80, 64,
/* 0x0620 */ 65,190,255,192, 57, 41, 0, 20, 65,152,255,232,127,227,251,120,
/* 0x0630 */ 127,100,219,120, 56,160, 0, 0,127,166,235,120, 56,224, 0, 0,
/* 0x0640 */ 57, 0, 0, 0, 57, 32, 0, 0, 75,255,252,185,124,124, 27,120,
/* 0x0650 */ 127,163,235,120, 75,255,250,209, 72, 0, 0, 16,128, 9, 0, 4,
/* 0x0660 */ 125, 41, 2, 20, 65,152,255, 40,128, 1, 0, 68,127,131,227,120,
/* 0x0670 */ 124, 8, 3,166,187, 97, 0, 44, 56, 33, 0, 64, 78,128, 0, 32
unsigned char stub_ppc64le_darwin_macho_fold[6] = {
/* 0x0000 */ 70, 73, 88, 77, 69, 10
};