f7cab0cf71
OpenBSD and NetBSD main programs probably need work.
modified: ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: p_lx_elf.cpp
modified: stub/Makefile
modified: stub/src/i386-linux.elf-entry.S
new file: stub/src/i386-linux.elf-entry.lds
modified: stub/src/i386-linux.elf-fold.S
modified: stub/src/i386-linux.elf-fold.lds
new file: stub/src/i386-linux.elf-main2.c
new file: stub/src/i386-linux.elf-so_entry.lds
modified: stub/src/upxfd_android.c
plus generated *.h *.map *.dump
168 lines
11 KiB
C++
Generated
168 lines
11 KiB
C++
Generated
/* i386-netbsd.elf-fold.h
|
|
created from i386-netbsd.elf-fold.bin, 2021 (0x7e5) bytes
|
|
|
|
This file is part of the UPX executable compressor.
|
|
|
|
Copyright (C) 1996-2024 Markus Franz Xaver Johannes Oberhumer
|
|
Copyright (C) 1996-2024 Laszlo Molnar
|
|
Copyright (C) 2000-2024 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>
|
|
*/
|
|
|
|
/* clang-format off */
|
|
|
|
#define STUB_I386_NETBSD_ELF_FOLD_SIZE 2021
|
|
#define STUB_I386_NETBSD_ELF_FOLD_ADLER32 0x6fd68771
|
|
#define STUB_I386_NETBSD_ELF_FOLD_CRC32 0x23ed5a87
|
|
|
|
unsigned char stub_i386_netbsd_elf_fold[2021] = {
|
|
/* 0x0000 */ 127, 69, 76, 70, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
/* 0x0010 */ 2, 0, 3, 0, 1, 0, 0, 0,128, 16,192, 0, 52, 0, 0, 0,
|
|
/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 32, 0, 2, 0, 0, 0,
|
|
/* 0x0030 */ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 16,192, 0,
|
|
/* 0x0040 */ 0, 16,192, 0,229, 7, 0, 0,232, 7, 0, 0, 5, 0, 0, 0,
|
|
/* 0x0050 */ 0, 16, 0, 0, 1, 0, 0, 0,229, 7, 0, 0, 0, 0, 0, 0,
|
|
/* 0x0060 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
/* 0x0070 */ 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
/* 0x0080 */ 41,201,186,248, 2, 0, 0,137,230,137,231,232,134, 0, 0, 0,
|
|
/* 0x0090 */ 137,230,209,234, 25,192, 41,193,141, 36,196,133,210,117,243,137,
|
|
/* 0x00a0 */ 231,232,112, 0, 0, 0,129,236, 0, 10, 0, 0, 83,139, 83, 72,
|
|
/* 0x00b0 */ 141,148, 26,255, 31, 0, 0,129,226, 0,240,255,255, 82, 41,192,
|
|
/* 0x00c0 */ 102,131,123, 16, 3,117, 1,146, 80,139, 67, 24,139,112,248, 41,
|
|
/* 0x00d0 */ 240,139, 24,139, 72, 4,131,193, 12,141, 84, 36, 12, 96, 71,232,
|
|
/* 0x00e0 */ 75, 5, 0, 0,131,196, 36, 89, 91,129,196, 0, 10, 0, 0, 90,
|
|
/* 0x00f0 */ 193,226, 12, 1,211, 80,106, 0,137,229, 41,217, 41,192, 81, 83,
|
|
/* 0x0100 */ 80, 79, 60,175,175,117,252,255, 55, 49,255, 49,246, 49,210, 49,
|
|
/* 0x0110 */ 201, 49,219,176, 73,195,173,171,173,171,133,192,117,250,173,171,
|
|
/* 0x0120 */ 133,192,117,250, 87,173,171,131,248, 32,115, 3, 15,179,194,133,
|
|
/* 0x0130 */ 192,173,171,117,240,131,239, 8, 1,201, 64,243,171, 72,171,171,
|
|
/* 0x0140 */ 95,195, 0, 0, 85,137,229, 87, 86,137,199, 83,137,206,139, 15,
|
|
/* 0x0150 */ 139, 64, 4, 57,241,137,195,114, 36,133,246,116, 15,137,241,138,
|
|
/* 0x0160 */ 3, 67,136, 2, 66,226,248,139, 71, 4,139, 15, 1,240, 41,241,
|
|
/* 0x0170 */ 137, 71, 4,137, 15,141,101,244, 91, 94, 95,201,195,106,127,232,
|
|
/* 0x0180 */ 25, 6, 0, 0, 85,137,229, 87, 86,137,198, 83,137,211,131,236,
|
|
/* 0x0190 */ 24,139, 58,139, 69, 8,133,255,137, 69,220, 15,132,153, 0, 0,
|
|
/* 0x01a0 */ 0,141,125,228,137,240,185, 12, 0, 0, 0,137,250,232,146,255,
|
|
/* 0x01b0 */ 255,255,139, 69,228,133,192, 15,132,203, 0, 0, 0,139, 77,232,
|
|
/* 0x01c0 */ 133,201, 15,132,201, 0, 0, 0, 57,193, 15,135,193, 0, 0, 0,
|
|
/* 0x01d0 */ 59, 3, 15,135,185, 0, 0, 0, 57,193,115,102,137, 69,224,141,
|
|
/* 0x01e0 */ 69,224,255,117,236, 80,255,115, 4, 81,255,118, 4,255, 85,220,
|
|
/* 0x01f0 */ 131,196, 20,133,192, 15,133,150, 0, 0, 0,139, 85,228, 59, 85,
|
|
/* 0x0200 */ 224, 15,133,138, 0, 0, 0,138, 69,237,132,192,116, 19,139, 77,
|
|
/* 0x0210 */ 12,133,201,116, 12,129,250, 0, 2, 0, 0,119, 75, 57, 19,116,
|
|
/* 0x0220 */ 71,139, 69,232, 1, 70, 4, 41, 6,139, 3, 1, 83, 4, 41,208,
|
|
/* 0x0230 */ 133,192,137, 3, 15,133,106,255,255,255,141,101,244, 91, 94, 95,
|
|
/* 0x0240 */ 201,195,139, 83, 4,137,240,232,248,254,255,255,139, 85,228,139,
|
|
/* 0x0250 */ 3, 1, 83, 4, 41,208,133,192,137, 3, 15,133, 68,255,255,255,
|
|
/* 0x0260 */ 141,101,244, 91, 94, 95,201,195, 15,182,192, 80, 15,182, 69,238,
|
|
/* 0x0270 */ 80, 82,255,115, 4,255, 85, 12,139, 69,232, 1, 70, 4,131,196,
|
|
/* 0x0280 */ 16, 41, 6,139, 85,228,235,161,129,125,232, 85, 80, 88, 33,116,
|
|
/* 0x0290 */ 7,106,127,232, 5, 5, 0, 0,139, 30,133,219,116,156,235,241,
|
|
/* 0x02a0 */ 133,192, 83,137,195,116, 33,168, 1,117, 29,139, 3, 57,208,116,
|
|
/* 0x02b0 */ 18,131,248, 1,116, 20,133,192,116, 14,131,195, 8,139, 3, 57,
|
|
/* 0x02c0 */ 208,117,238,137, 19,137, 75, 4, 91,195,133,210,117,245,131,195,
|
|
/* 0x02d0 */ 8,235,234, 85,137,229, 87, 86,190, 0, 0, 0, 0, 83,131,236,
|
|
/* 0x02e0 */ 64,137, 69,228,139, 69, 8,137, 85,224,139,125,224,199, 69,204,
|
|
/* 0x02f0 */ 255,255,255,255,139, 85, 12,137, 69,220,139, 69,224,139, 77, 20,
|
|
/* 0x0300 */ 137, 85,216, 3,127, 28,139, 85,224,137, 77,212,102,131,120, 16,
|
|
/* 0x0310 */ 2, 15,183, 74, 44,137,251, 15,148,192, 15,182,192,137,202,193,
|
|
/* 0x0320 */ 224, 4, 5, 2, 16, 0, 0, 74,120, 14,131, 59, 1, 15,132,209,
|
|
/* 0x0330 */ 0, 0, 0,131,195, 32,226,242,139, 93,204,106, 0,106,255,129,
|
|
/* 0x0340 */ 227, 0,240,255,255, 80, 41,222,106, 0,129,198,255, 15, 0, 0,
|
|
/* 0x0350 */ 129,230, 0,240,255,255, 86, 83,232, 27, 4, 0, 0,139, 77,224,
|
|
/* 0x0360 */ 141, 52, 48,131,196, 24,102,139, 81, 44, 41,216,137,117,240,190,
|
|
/* 0x0370 */ 0, 0, 0, 0,102,133,210,137, 69,208,117, 20,235, 69, 72, 15,
|
|
/* 0x0380 */ 132,156, 0, 0, 0, 70, 15,183,194,131,199, 32, 57,240,126, 51,
|
|
/* 0x0390 */ 139, 7,131,248, 6,117,231,139, 69,220,133,192,116,231,139, 77,
|
|
/* 0x03a0 */ 208,186, 3, 0, 0, 0, 3, 79, 8,139, 69,216,232,239,254,255,
|
|
/* 0x03b0 */ 255,139, 69,224, 70,131,199, 32,102,139, 80, 44, 15,183,194, 57,
|
|
/* 0x03c0 */ 240,127,205,139, 77,220,133,201, 15,132, 56, 2, 0, 0,139, 85,
|
|
/* 0x03d0 */ 224,102,131,122, 16, 3,116, 9,255,117,240,232,188, 3, 0, 0,
|
|
/* 0x03e0 */ 88,139, 69, 16,133,192,116, 8,139, 69,208,139, 77, 16,137, 1,
|
|
/* 0x03f0 */ 139, 85,224,139, 82, 24, 1, 85,208,139, 69,208,141,101,244, 91,
|
|
/* 0x0400 */ 94, 95,201,195,139, 83, 8, 59, 85,204,115, 3,137, 85,204, 3,
|
|
/* 0x0410 */ 83, 20, 57,242, 15,134, 25,255,255,255,137,214,233, 18,255,255,
|
|
/* 0x0420 */ 255,139, 95, 20,133,219, 15,132, 89,255,255,255,139, 69,208,199,
|
|
/* 0x0430 */ 69,200, 64, 98, 81,115, 3, 71, 8,139, 79, 24,139, 87, 16,131,
|
|
/* 0x0440 */ 225, 7, 1,195,193,225, 2,137, 93,188,211,109,200,137,193,139,
|
|
/* 0x0450 */ 93,220,129,225,255, 15, 0, 0,131,101,200, 7,137, 85,232, 1,
|
|
/* 0x0460 */ 202,137, 69,236, 41,200,133,219,137, 85,196,137, 69,192, 15,132,
|
|
/* 0x0470 */ 104, 1, 0, 0,106, 0,139, 69,200,106,255,104, 18, 16, 0, 0,
|
|
/* 0x0480 */ 131,200, 2, 80,137,208,131,192, 3, 80,255,117,192,232,230, 2,
|
|
/* 0x0490 */ 0, 0,131,196, 24, 59, 69,192, 15,133,204, 0, 0, 0,139, 77,
|
|
/* 0x04a0 */ 220,133,201,116, 31,246, 69,200, 4,139, 69,212,117, 5,184, 0,
|
|
/* 0x04b0 */ 0, 0, 0, 80,139, 69,220,255,117,228,141, 85,232,232,194,252,
|
|
/* 0x04c0 */ 255,255, 88, 90,139, 93,196,247,219,129,227,255, 15, 0, 0,246,
|
|
/* 0x04d0 */ 69,200, 2,116, 14,139, 69,192, 3, 69,196,133,219, 15,133,142,
|
|
/* 0x04e0 */ 0, 0, 0,139, 69,220,133,192,116, 30,131, 63, 1, 15,132,139,
|
|
/* 0x04f0 */ 0, 0, 0,255,117,200,255,117,196,255,117,192,232,184, 2, 0,
|
|
/* 0x0500 */ 0,131,196, 12,133,192,117, 98,139, 69,196, 1,216,139, 93,192,
|
|
/* 0x0510 */ 1,195, 59, 93,188,114, 48,139, 69,220,133,192,116, 29,139, 69,
|
|
/* 0x0520 */ 196,131,192, 3, 37,255, 15, 0, 0,131,248, 3, 15,135,127,254,
|
|
/* 0x0530 */ 255,255, 80, 83,232,124, 2, 0, 0, 91, 88,139, 77,224,102,139,
|
|
/* 0x0540 */ 81, 44,233, 62,254,255,255,106, 0,106,255,104, 18, 16, 0, 0,
|
|
/* 0x0550 */ 255,117,200, 41, 93,188,255,117,188, 83,232, 25, 2, 0, 0,131,
|
|
/* 0x0560 */ 196, 24, 57,216, 15,132, 71,254,255,255,106,127,232, 44, 2, 0,
|
|
/* 0x0570 */ 0,137,217,198, 0, 0, 64,226,250,233,101,255,255,255,246, 71,
|
|
/* 0x0580 */ 24, 1, 15,132,107,255,255,255,139, 87, 20,139, 79, 8,137, 77,
|
|
/* 0x0590 */ 184, 1,209,137, 77,180, 3, 77,208, 59, 87, 16,116,126,107, 69,
|
|
/* 0x05a0 */ 208, 52,139, 85,184,141, 76, 2, 12,139, 71, 4,133,192,117, 15,
|
|
/* 0x05b0 */ 139, 1, 61,205,128,201,195,116, 6,199, 1,205,128,201,195,133,
|
|
/* 0x05c0 */ 201, 15,132, 44,255,255,255,139, 69,216,186, 0, 0, 0, 0,131,
|
|
/* 0x05d0 */ 224,254,232,201,252,255,255,233, 23,255,255,255,139, 71, 4, 41,
|
|
/* 0x05e0 */ 200, 80,255,117,228,106, 18,255,117,200,255,117,196,255,117,192,
|
|
/* 0x05f0 */ 232,131, 1, 0, 0,131,196, 24, 59, 69,192, 15,132,195,254,255,
|
|
/* 0x0600 */ 255,233,100,255,255,255,255,117,228,232,163, 1, 0, 0, 90,133,
|
|
/* 0x0610 */ 192, 15,132,202,253,255,255,233, 78,255,255,255,137,200,247,216,
|
|
/* 0x0620 */ 37,255, 15, 0, 0,131,248, 3,119,134,233,111,255,255,255, 85,
|
|
/* 0x0630 */ 137,229, 87, 86, 83,131,236, 16,141, 85, 24,139, 69, 8,106, 0,
|
|
/* 0x0640 */ 139,117, 16,137, 69,236,139, 69, 28, 86,139, 93, 32,137, 69,228,
|
|
/* 0x0650 */ 137,199,141, 70, 2,131,199, 52,137, 69,232,141, 69, 32,232, 33,
|
|
/* 0x0660 */ 251,255,255,139, 69, 12,185, 0, 16, 0, 0,186, 6, 0, 0, 0,
|
|
/* 0x0670 */ 137, 69, 32,139, 69,236, 41, 93, 36,232, 34,252,255,255,139, 69,
|
|
/* 0x0680 */ 228,186, 5, 0, 0, 0, 15,183, 72, 44,139, 69,236,232, 14,252,
|
|
/* 0x0690 */ 255,255,139, 69,228,186, 4, 0, 0, 0, 15,183, 72, 42,139, 69,
|
|
/* 0x06a0 */ 236,232,250,251,255,255,139, 77, 40, 3, 79, 8,186, 3, 0, 0,
|
|
/* 0x06b0 */ 0,139, 69,236,131,193, 52,232,228,251,255,255,141, 69,240,255,
|
|
/* 0x06c0 */ 117,232, 80,139, 85,228,255,117,236,141, 69, 32, 80,137,240,232,
|
|
/* 0x06d0 */ 255,251,255,255,186, 9, 0, 0, 0,137,193,137,195,139, 69,236,
|
|
/* 0x06e0 */ 232,187,251,255,255,139, 69,228,131,196, 24,186, 0, 0, 0, 0,
|
|
/* 0x06f0 */ 102,139, 72, 44,102,133,201,116, 16,131, 63, 3,116, 21, 66, 15,
|
|
/* 0x0700 */ 183,193,131,199, 32, 57,208,127,240,141,101,244,137,216, 91, 94,
|
|
/* 0x0710 */ 95,201,195,106, 0,139, 69,240,106, 0, 3, 71, 8, 80,232,138,
|
|
/* 0x0720 */ 0, 0, 0,131,196, 12,133,192,137,195,120, 24,104, 0, 2, 0,
|
|
/* 0x0730 */ 0,255,117,228, 80,232,107, 0, 0, 0,131,196, 12, 61, 0, 2,
|
|
/* 0x0740 */ 0, 0,116, 7,106,127,232, 82, 0, 0, 0,141, 69,240,139, 85,
|
|
/* 0x0750 */ 228,106, 0, 80,137,216,106, 0,106, 0,232,116,251,255,255,139,
|
|
/* 0x0760 */ 77,240,137,195,139, 69,236,186, 7, 0, 0, 0,232, 47,251,255,
|
|
/* 0x0770 */ 255,131,196, 16,235,147, 0, 0, 85,137,229, 49,192, 80,255,117,
|
|
/* 0x0780 */ 28, 80,255,117, 24,255,117, 20,255,117, 16,255,117, 12,255,117,
|
|
/* 0x0790 */ 8, 80,176,197, 80, 80,176,198,205,128,201,195,195,176, 1, 15,
|
|
/* 0x07a0 */ 182,192,205,128,195,176, 3,235,246,176, 4,235,242,176, 5,235,
|
|
/* 0x07b0 */ 238,176, 6,235,234,176, 73,235,230,176, 74,235,226,176, 33,235,
|
|
/* 0x07c0 */ 222,176, 20,235,218,176, 92,235,214,176, 59,235,210,176, 2,235,
|
|
/* 0x07d0 */ 206,176,130,235,202,176,116,235,198,176,240,235,194,176, 10,235,
|
|
/* 0x07e0 */ 190,176, 7,235,186
|
|
};
|