mirror of
https://github.com/upx/upx
synced 2025-10-05 19:20:23 +08:00

https://github.com/upx/upx/issues/222 modified: p_mach.cpp modified: p_mach.h modified: stub/src/amd64-darwin.macho-entry.S also *.macho-*.h, *.macho-fold.map, amd64-darwin.macho-entry.bin.dump
192 lines
13 KiB
C
192 lines
13 KiB
C
/* arm.v5a-darwin.macho-fold.h
|
|
created from arm.v5a-darwin.macho-fold.bin, 2424 (0x978) bytes
|
|
|
|
This file is part of the UPX executable compressor.
|
|
|
|
Copyright (C) 1996-2018 Markus Franz Xaver Johannes Oberhumer
|
|
Copyright (C) 1996-2018 Laszlo Molnar
|
|
Copyright (C) 2000-2018 John F. Reiser
|
|
All Rights Reserved.
|
|
|
|
UPX and the UCL library are free software; you can redistribute them
|
|
and/or modify them under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of
|
|
the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; see the file COPYING.
|
|
If not, write to the Free Software Foundation, Inc.,
|
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
Markus F.X.J. Oberhumer Laszlo Molnar
|
|
<markus@oberhumer.com> <ezerotven+github@gmail.com>
|
|
|
|
John F. Reiser
|
|
<jreiser@users.sourceforge.net>
|
|
*/
|
|
|
|
|
|
#define STUB_ARM_V5A_DARWIN_MACHO_FOLD_SIZE 2424
|
|
#define STUB_ARM_V5A_DARWIN_MACHO_FOLD_ADLER32 0x12a4f745
|
|
#define STUB_ARM_V5A_DARWIN_MACHO_FOLD_CRC32 0x55f9715a
|
|
|
|
unsigned char stub_arm_v5a_darwin_macho_fold[2424] = {
|
|
/* 0x0000 */ 24, 48,154,229, 2,202,160,227, 12, 0, 83,225, 12, 48,160, 49,
|
|
/* 0x0010 */ 13,128,160,225, 3,208, 77,224, 13, 32,160,225, 11, 16,160,225,
|
|
/* 0x0020 */ 10, 0,160,225, 16, 96,136,226, 52, 80,143,226, 9, 64,160,225,
|
|
/* 0x0030 */ 112, 0, 45,233,225, 1, 0,235, 56,160,144,229, 0,144,144,229,
|
|
/* 0x0040 */ 8,208,160,225, 0, 0,157,229, 44, 0, 0,235, 4, 0,157,229,
|
|
/* 0x0050 */ 8, 16,157,229, 73,112,160,227, 10,224,160,225, 16,208,141,226,
|
|
/* 0x0060 */ 25,255, 47,225,255, 48, 3,226, 80, 0, 83,227, 14,240,160, 17,
|
|
/* 0x0070 */ 33, 17,176,225, 0, 0, 80, 19, 14,240,160, 1, 1, 16, 65,226,
|
|
/* 0x0080 */ 1, 33,144,231, 15, 52, 2,226, 11, 4, 83,227, 4, 0, 0, 26,
|
|
/* 0x0090 */ 255, 52, 2,226, 1, 32, 66,224,255, 36,194,227, 3, 32,130,225,
|
|
/* 0x00a0 */ 1, 33,128,231, 0, 0, 81,227,243,255,255, 26, 14,240,160,225,
|
|
/* 0x00b0 */ 30,255, 47,225, 1,192,160,227,128, 0, 0,239, 2, 1,128, 35,
|
|
/* 0x00c0 */ 30,255, 47,225, 3,192,160,227,128, 0, 0,239, 2, 1,128, 35,
|
|
/* 0x00d0 */ 30,255, 47,225, 30,255, 47,225, 4,192,160,227,128, 0, 0,239,
|
|
/* 0x00e0 */ 2, 1,128, 35, 30,255, 47,225, 30,255, 47,225, 5,192,160,227,
|
|
/* 0x00f0 */ 128, 0, 0,239, 2, 1,128, 35, 30,255, 47,225, 30,255, 47,225,
|
|
/* 0x0100 */ 6,192,160,227,128, 0, 0,239, 2, 1,128, 35, 30,255, 47,225,
|
|
/* 0x0110 */ 30,255, 47,225, 45,192,160,227,128, 0, 0,239, 2, 1,128, 35,
|
|
/* 0x0120 */ 30,255, 47,225, 30,255, 47,225, 73,192,160,227,128, 0, 0,239,
|
|
/* 0x0130 */ 2, 1,128, 35, 30,255, 47,225, 30,255, 47,225, 74,192,160,227,
|
|
/* 0x0140 */ 128, 0, 0,239, 2, 1,128, 35, 30,255, 47,225, 30,255, 47,225,
|
|
/* 0x0150 */ 13,192,160,225,112, 0, 45,233, 48, 0,156,232, 0, 96,160,227,
|
|
/* 0x0160 */ 197,192,160,227,128, 0, 0,239, 2, 1,128, 35, 30,255, 47,225,
|
|
/* 0x0170 */ 112, 0,189,232, 30,255, 47,225, 4, 64, 45,229, 0, 64,160,227,
|
|
/* 0x0180 */ 153,192,160,227,128, 0, 0,239, 2, 1,128, 35, 30,255, 47,225,
|
|
/* 0x0190 */ 4, 64,157,228, 30,255, 47,225,255,192,160,227,255,200,140,227,
|
|
/* 0x01a0 */ 4, 0, 0,234, 0, 32,144,229, 2, 48, 12,224, 98, 44, 12,224,
|
|
/* 0x01b0 */ 99, 36,130,225, 4, 32,128,228, 4, 16, 81,226,248,255,255,170,
|
|
/* 0x01c0 */ 30,255, 47,225,112, 0, 32,225, 10, 0, 81,227,252,255,255, 26,
|
|
/* 0x01d0 */ 0,192,160,225, 1, 16, 65,224, 0, 32,160,225,128, 1,144,224,
|
|
/* 0x01e0 */ 129, 17,161,224,162, 30,129,224, 0, 32,160,225, 0, 2,144,224,
|
|
/* 0x01f0 */ 1, 18,161,224, 34, 30,129,224, 0, 32,160,225, 0, 4,144,224,
|
|
/* 0x0200 */ 1, 20,161,224, 34, 28,129,224, 0, 32,160,225, 0, 8,144,224,
|
|
/* 0x0210 */ 1, 24,161,224, 34, 24,129,224,140, 15, 80,224,172, 16,193,224,
|
|
/* 0x0220 */ 12, 0,144,224, 0, 0,161,226, 30,255, 47,225, 4,224, 45,229,
|
|
/* 0x0230 */ 159,255,255,235, 0, 48,144,229, 2, 0, 83,225, 16, 64, 45,233,
|
|
/* 0x0240 */ 0,192,160, 35, 2,224,160,225, 1, 64,160,225, 2, 32,160, 33,
|
|
/* 0x0250 */ 4, 16,144,229, 4, 0, 0, 42,127, 0,160,227,148,255,255,235,
|
|
/* 0x0260 */ 1, 48,220,231, 4, 48,204,231, 1,192,140,226, 1, 32, 82,226,
|
|
/* 0x0270 */ 250,255,255, 42, 4, 32,144,229, 0, 48,144,229, 14, 32,130,224,
|
|
/* 0x0280 */ 3, 48,110,224, 0, 48,128,229, 4, 32,128,229, 16,128,189,232,
|
|
/* 0x0290 */ 240, 64, 45,233, 0, 80,160,225, 20,208, 77,226, 1, 64,160,225,
|
|
/* 0x02a0 */ 2,112,160,225, 3, 96,160,225, 71, 0, 0,234, 12, 32,160,227,
|
|
/* 0x02b0 */ 5, 0,160,225, 4, 16,141,226,221,255,255,235, 4, 48,157,229,
|
|
/* 0x02c0 */ 0, 0, 83,227, 8, 32,157,229, 9, 0, 0, 26, 12, 49,159,229,
|
|
/* 0x02d0 */ 3, 0, 82,225, 2, 0,160, 19,211,255,255, 27, 0, 48,149,229,
|
|
/* 0x02e0 */ 0, 0, 83,227, 59, 0, 0, 10, 3, 0,160,227,206,255,255,235,
|
|
/* 0x02f0 */ 56, 0, 0,234, 0, 0, 82,227, 4, 0,160, 3,202,255,255, 11,
|
|
/* 0x0300 */ 12, 0,157,233, 2, 0, 83,225, 2, 0, 0,138, 0, 48,148,229,
|
|
/* 0x0310 */ 3, 0, 82,225, 1, 0, 0,154, 5, 0,160,227,194,255,255,235,
|
|
/* 0x0320 */ 8, 16,157,229, 4,224,157,229, 14, 0, 81,225, 29, 0, 0, 42,
|
|
/* 0x0330 */ 12,192,221,229, 4, 0,149,229, 4, 32,148,229, 16, 48,141,226,
|
|
/* 0x0340 */ 16,224,141,229, 0,192,141,229, 15,224,160,225, 7,240,160,225,
|
|
/* 0x0350 */ 0, 0, 80,227, 3, 0, 0, 26, 16, 32,157,229, 4, 48,157,229,
|
|
/* 0x0360 */ 3, 0, 82,225, 1, 0, 0, 10, 7, 0,160,227,174,255,255,235,
|
|
/* 0x0370 */ 13, 48,221,229, 0, 0, 83,227, 0, 0, 86, 19, 4, 0,148, 21,
|
|
/* 0x0380 */ 16, 16,157, 21, 14, 32,221, 21, 15,224,160, 17, 6,240,160, 17,
|
|
/* 0x0390 */ 8, 48,157,229, 6, 0,149,232, 3, 32,130,224, 1, 16, 99,224,
|
|
/* 0x03a0 */ 6, 0,133,232, 3, 0, 0,234, 1, 32,160,225, 5, 0,160,225,
|
|
/* 0x03b0 */ 4, 16,148,229,158,255,255,235, 4, 48,157,229, 6, 0,148,232,
|
|
/* 0x03c0 */ 3, 32,130,224, 1, 16, 99,224, 6, 0,132,232, 0, 48,148,229,
|
|
/* 0x03d0 */ 0, 0, 83,227,180,255,255, 26, 20,208,141,226,240,128,189,232,
|
|
/* 0x03e0 */ 85, 80, 88, 33,240, 79, 45,233, 12, 64,144,229, 36,208, 77,226,
|
|
/* 0x03f0 */ 7, 0, 84,227, 0,160,160,225, 12, 16,141,229, 2,144,160,225,
|
|
/* 0x0400 */ 8, 48,141,229, 28,112,128,226, 16, 96,144,229, 3, 0, 0, 10,
|
|
/* 0x0410 */ 24, 48,144,229, 2, 6, 19,227, 16, 48,160, 3, 0, 0, 0, 10,
|
|
/* 0x0420 */ 0, 48,160,227, 1, 90,131,226, 0,192,160,227, 2, 80,133,226,
|
|
/* 0x0430 */ 7, 16,160,225, 0, 0,224,227, 12,224,160,225, 23, 0, 0,234,
|
|
/* 0x0440 */ 0, 48,145,229, 1, 0, 83,227, 17, 0, 0, 26, 28, 32,145,229,
|
|
/* 0x0450 */ 0, 0, 82,227, 14, 0, 0, 10, 24, 48,145,229, 0, 0, 83,227,
|
|
/* 0x0460 */ 3, 32,130,224, 1, 0, 0, 26, 16, 0, 21,227, 8, 0, 0, 26,
|
|
/* 0x0470 */ 7, 0, 84,227, 1, 0,112, 3, 1, 0, 0, 26, 0, 0, 83,227,
|
|
/* 0x0480 */ 16, 80,133, 19, 2, 0, 92,225, 2,192,160, 49, 3, 0, 80,225,
|
|
/* 0x0490 */ 3, 0,160, 33, 4, 48,145,229, 3, 48,195,227, 3, 16,129,224,
|
|
/* 0x04a0 */ 6, 0, 94,225, 1,224,142,226,228,255,255,186,255,110,192,227,
|
|
/* 0x04b0 */ 15, 96,198,227, 12, 48,102,224,255, 62,131,226, 15, 48,131,226,
|
|
/* 0x04c0 */ 255, 78,195,227, 16, 0, 21,226, 15, 64,196,227, 3, 0, 0, 10,
|
|
/* 0x04d0 */ 6, 0,160,225, 4, 16,160,225, 18,255,255,235, 6, 0,160,225,
|
|
/* 0x04e0 */ 0,128,160,227, 4, 16,160,225, 5, 48,160,225, 0,192,224,227,
|
|
/* 0x04f0 */ 8, 32,160,225, 0,192,141,229, 4,128,141,229, 19,255,255,235,
|
|
/* 0x0500 */ 0, 58,160,225, 35, 58,160,225, 8, 0, 83,225, 0, 64,160,225,
|
|
/* 0x0510 */ 6, 0,160, 19, 68,255,255, 27, 4, 64,102,224, 8,176,160,225,
|
|
/* 0x0520 */ 16, 64,141,229, 20,128,141,229,150, 0, 0,234, 0, 48,151,229,
|
|
/* 0x0530 */ 1, 0, 83,227,132, 0, 0, 26, 28, 16,151,229, 0, 0, 81,227,
|
|
/* 0x0540 */ 129, 0, 0, 10, 24, 32,151,229, 16, 48,157,229, 2, 32,131,224,
|
|
/* 0x0550 */ 36, 0,151,229, 2, 58,160,225, 35, 58,160,225, 1, 16,130,224,
|
|
/* 0x0560 */ 3, 96,144,224, 28, 0,141,229, 32, 32,141,229, 24, 16,141,229,
|
|
/* 0x0570 */ 2, 80, 99,224, 26, 0, 0, 10, 0, 0, 89,227, 3, 0, 0, 26,
|
|
/* 0x0580 */ 0, 0, 80,227, 8,224,157, 21, 18, 48,160, 19, 1, 0, 0, 26,
|
|
/* 0x0590 */ 32, 50,159,229, 0,224,224,227, 32,192,151,229, 12, 32,157,229,
|
|
/* 0x05a0 */ 5, 0,160,225, 12,192,130,224, 6, 16,160,225, 3, 32,160,227,
|
|
/* 0x05b0 */ 0,224,141,229, 4,192,141,229,228,254,255,235, 5, 0, 80,225,
|
|
/* 0x05c0 */ 0, 64,160,225, 8, 0,160, 19, 23,255,255, 27, 72, 32,157,229,
|
|
/* 0x05d0 */ 0, 48,146,229, 0, 0, 83,227, 72, 48,157, 5, 0, 64,131, 5,
|
|
/* 0x05e0 */ 4, 80,160,225, 0, 0, 89,227,107, 0, 0, 10, 36, 48,151,229,
|
|
/* 0x05f0 */ 0, 0, 83,227, 8, 0, 0, 10, 32, 48,151,229, 0, 0, 83,227,
|
|
/* 0x0600 */ 72, 32,157, 5, 9, 0,160,225, 0, 80,130, 5, 28, 16,141,226,
|
|
/* 0x0610 */ 76, 32,141,226, 12, 0,146,232, 28,255,255,235, 0, 0, 86,226,
|
|
/* 0x0620 */ 1, 0,160, 19, 0, 0, 80,227, 18, 0, 0, 10, 32, 48,151,229,
|
|
/* 0x0630 */ 0, 0, 83,227, 15, 0, 0, 26, 48, 48,151,229, 0, 0, 83,227,
|
|
/* 0x0640 */ 12, 0, 0, 10, 7, 48,106,224, 3, 48,195,227, 5, 48,131,224,
|
|
/* 0x0650 */ 96, 48,147,229, 3, 48,195,227, 3, 48,133,224,239, 36,160,227,
|
|
/* 0x0660 */ 8, 32, 3,229, 80, 33,159,229, 8,176, 67,226, 1,128,160,227,
|
|
/* 0x0670 */ 4, 32, 3,229, 0, 0, 0,234, 1,128,160,227, 0, 48,102,226,
|
|
/* 0x0680 */ 3, 74,160,225, 36, 74,160,225, 0, 0, 84,227, 6, 0, 0, 10,
|
|
/* 0x0690 */ 5, 16,134,224, 0, 32,160,227, 0, 48,160,227, 1, 48,194,231,
|
|
/* 0x06a0 */ 1, 32,130,226, 4, 0, 82,225,250,255,255, 26, 0, 0, 80,227,
|
|
/* 0x06b0 */ 6, 0, 0, 10, 5, 0,160,225, 6, 16,160,225, 44, 32,151,229,
|
|
/* 0x06c0 */ 157,254,255,235, 0, 0, 80,227, 10, 0,160, 19,214,254,255, 27,
|
|
/* 0x06d0 */ 5, 48,134,224, 3, 64,132,224, 24, 48,157,229, 3, 0, 84,225,
|
|
/* 0x06e0 */ 15, 0, 0, 42, 0, 0, 84,227, 32, 0, 0, 10, 0,192,224,227,
|
|
/* 0x06f0 */ 44, 32,151,229, 3, 16,100,224, 0,192,141,229, 4, 0,160,225,
|
|
/* 0x0700 */ 1,192,140,226,172, 48,159,229, 4,192,141,229,143,254,255,235,
|
|
/* 0x0710 */ 0, 0, 84,225, 21, 0, 0, 10, 9, 0,160,227,194,254,255,235,
|
|
/* 0x0720 */ 18, 0, 0,234, 0, 0, 88,227, 16, 0, 0, 10, 3, 48,134,226,
|
|
/* 0x0730 */ 3, 26,160,225, 33, 26,160,225, 3, 0, 81,227, 11, 0, 0,138,
|
|
/* 0x0740 */ 4, 0,160,225,119,254,255,235, 8, 0, 0,234, 0, 0, 89,227,
|
|
/* 0x0750 */ 6, 0, 0, 26, 4, 48, 67,226, 1, 0, 83,227, 76, 48,151,149,
|
|
/* 0x0760 */ 16, 32,157,149, 2, 48,131,144, 76, 48,135,149, 16,176,135,146,
|
|
/* 0x0770 */ 4, 48,151,229, 3, 48,195,227, 3,112,135,224, 20, 48,157,229,
|
|
/* 0x0780 */ 1, 48,131,226, 20, 48,141,229, 16, 48,154,229, 20, 32,157,229,
|
|
/* 0x0790 */ 3, 0, 82,225,100,255,255, 58, 3, 0, 0,234, 0, 0, 86,226,
|
|
/* 0x07a0 */ 1, 0,160, 19, 9,128,160,225,179,255,255,234, 11, 0,160,225,
|
|
/* 0x07b0 */ 36,208,141,226,240,143,189,232, 18, 16, 0, 0, 30,255, 47,225,
|
|
/* 0x07c0 */ 240, 67, 45,233, 44,208, 77,226, 12, 16,141,229, 12, 16,157,229,
|
|
/* 0x07d0 */ 24,192,144,229, 24, 16, 65,226, 24, 0,128,226, 72, 64,157,229,
|
|
/* 0x07e0 */ 36, 0,141,229, 32, 16,141,229, 32,128,141,226, 0, 3,152,232,
|
|
/* 0x07f0 */ 2, 80,160,225, 32, 0,141,226, 24, 16,141,226, 4, 32,160,225,
|
|
/* 0x0800 */ 3,112,160,225, 0, 48,160,227, 24,192,141,229, 16,128,141,229,
|
|
/* 0x0810 */ 20,144,141,229, 28, 80,141,229,156,254,255,235, 80,192,157,229,
|
|
/* 0x0820 */ 0,192,141,229, 76,192,157,229, 0, 16,160,227, 16, 32,141,226,
|
|
/* 0x0830 */ 5, 0,160,225, 0, 48,224,227, 16, 16,141,233,232,254,255,235,
|
|
/* 0x0840 */ 0,128,160,225, 16, 0,149,229, 28, 32,133,226, 0, 16,160,227,
|
|
/* 0x0850 */ 62, 0, 0,234, 0, 48,146,229, 14, 0, 83,227, 57, 0, 0, 26,
|
|
/* 0x0860 */ 8, 0,146,229, 0, 16,160,227, 0, 0,130,224, 1, 32,160,225,
|
|
/* 0x0870 */ 29,254,255,235, 0, 96, 80,226, 18, 0,160,179,106,254,255,187,
|
|
/* 0x0880 */ 0, 64,160,227, 6, 0,160,225, 5, 16,160,225, 7, 32,160,225,
|
|
/* 0x0890 */ 4, 48,160,225, 55,254,255,235, 0, 0, 87,225, 19, 0,160, 19,
|
|
/* 0x08a0 */ 97,254,255, 27, 0, 32,149,229,188, 48,159,229, 3, 0, 82,225,
|
|
/* 0x08b0 */ 2, 0, 0, 10,180, 48,159,229, 3, 0, 82,225, 18, 0, 0, 26,
|
|
/* 0x08c0 */ 7, 48,213,229, 20, 32,160,227,147, 2, 1,224, 5, 0,160,225,
|
|
/* 0x08d0 */ 8, 16,129,226, 47,254,255,235, 4,192,149,229, 8, 16,133,226,
|
|
/* 0x08e0 */ 0, 0,160,227, 5, 0, 0,234, 0, 32,145,229,128, 48,159,229,
|
|
/* 0x08f0 */ 3, 0, 82,225, 8, 64,145, 5,225,255,255, 10, 20, 16,129,226,
|
|
/* 0x0900 */ 12, 0, 80,225, 1, 0,128,226,246,255,255, 26, 0,224,160,227,
|
|
/* 0x0910 */ 44,192,141,226, 4,224, 44,229, 4, 16,160,225, 5, 0,160,225,
|
|
/* 0x0920 */ 14, 32,160,225, 6, 48,160,225, 0, 80,141,232, 8,224,141,229,
|
|
/* 0x0930 */ 171,254,255,235, 0, 64,160,225, 0,128,128,229, 6, 0,160,225,
|
|
/* 0x0940 */ 238,253,255,235, 5, 0, 0,234, 4, 48,146,229, 3, 32,130,224,
|
|
/* 0x0950 */ 0, 0, 81,225, 1, 16,129,226,189,255,255, 26, 0, 64,160,227,
|
|
/* 0x0960 */ 4, 0,160,225, 44,208,141,226,240,131,189,232,202,254,186,190,
|
|
/* 0x0970 */ 190,186,254,202, 7, 0, 0, 1
|
|
};
|