Decompression stubs for arm64-linux (aarch)

modified:   stub/Makefile
	modified:   stub/arm64-darwin.macho-entry.h
	modified:   stub/arm64-darwin.macho-fold.h
	new file:   stub/arm64-linux.elf-entry.h
	new file:   stub/arm64-linux.elf-fold.h
	modified:   stub/scripts/xstrip.py
	modified:   stub/src/arch/arm64/v8/macros.S
	modified:   stub/src/arch/arm64/v8/nrv2b_d8.S
	modified:   stub/src/arch/arm64/v8/nrv2d_d8.S
	modified:   stub/src/arch/arm64/v8/nrv2e_d8.S
	new file:   stub/src/arm64-linux.elf-entry.S
	new file:   stub/src/arm64-linux.elf-fold.S
	new file:   stub/src/arm64-linux.elf-fold.lds
	new file:   stub/src/arm64-linux.elf-main.c
	modified:   stub/src/include/linux.h
This commit is contained in:
John Reiser
2017-03-01 05:47:03 -08:00
parent 5305eb5b8a
commit 8c6133c115
15 changed files with 1744 additions and 86 deletions
+8 -8
View File
@@ -32,8 +32,8 @@
#define STUB_ARM64_DARWIN_MACHO_ENTRY_SIZE 4261
#define STUB_ARM64_DARWIN_MACHO_ENTRY_ADLER32 0x23e0ad20
#define STUB_ARM64_DARWIN_MACHO_ENTRY_CRC32 0xf305c3e9
#define STUB_ARM64_DARWIN_MACHO_ENTRY_ADLER32 0x08eeac06
#define STUB_ARM64_DARWIN_MACHO_ENTRY_CRC32 0xce42313b
unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -48,8 +48,8 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x0090 */ 5, 0,128, 18, 4, 0,176, 82, 29, 0, 0, 20,227, 19,193,168,
/* 0x00a0 */ 0, 0, 7,203, 66, 0, 3,203,130, 0, 0,185,228, 3, 0,170,
/* 0x00b0 */ 224, 3, 3,170,225, 3, 2,170,224, 7,191,169, 35, 0,128, 82,
/* 0x00c0 */ 8, 0,176, 82, 0, 16, 32,212,224, 7,193,168, 3, 0,128, 82,
/* 0x00d0 */ 8, 0,176, 82, 0, 16, 32,212,224, 3, 4,170,254,135, 64,248,
/* 0x00c0 */ 8, 0,176, 82, 1, 0, 0,212,224, 7,193,168, 3, 0,128, 82,
/* 0x00d0 */ 8, 0,176, 82, 1, 0, 0,212,224, 3, 4,170,254,135, 64,248,
/* 0x00e0 */ 192, 3, 95,214,132, 0, 4, 43, 68, 0, 0, 52,192, 3, 95,214,
/* 0x00f0 */ 4, 20, 64, 56,132, 0, 4, 58,132, 32, 9, 83,132, 0, 4, 43,
/* 0x0100 */ 192, 3, 95,214, 3, 20, 64, 56, 67, 20, 0, 56,246,255,255,151,
@@ -68,8 +68,8 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x01d0 */ 4, 0,176, 82, 29, 0, 0, 20,227, 19,193,168, 0, 0, 7,203,
/* 0x01e0 */ 66, 0, 3,203,130, 0, 0,185,228, 3, 0,170,224, 3, 3,170,
/* 0x01f0 */ 225, 3, 2,170,224, 7,191,169, 35, 0,128, 82, 8, 0,176, 82,
/* 0x0200 */ 0, 16, 32,212,224, 7,193,168, 3, 0,128, 82, 8, 0,176, 82,
/* 0x0210 */ 0, 16, 32,212,224, 3, 4,170,254,135, 64,248,192, 3, 95,214,
/* 0x0200 */ 1, 0, 0,212,224, 7,193,168, 3, 0,128, 82, 8, 0,176, 82,
/* 0x0210 */ 1, 0, 0,212,224, 3, 4,170,254,135, 64,248,192, 3, 95,214,
/* 0x0220 */ 132, 0, 4, 43, 68, 0, 0, 52,192, 3, 95,214, 4, 20, 64, 56,
/* 0x0230 */ 132, 0, 4, 58,132, 32, 9, 83,132, 0, 4, 43,192, 3, 95,214,
/* 0x0240 */ 3, 20, 64, 56, 67, 20, 0, 56,246,255,255,151,162,255,255, 84,
@@ -87,8 +87,8 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x0300 */ 4, 0,176, 82, 37, 0, 0, 20,228, 11, 64,249,225,143,193,168,
/* 0x0310 */ 0, 0, 1,203, 66, 0, 3,203,130, 0, 0,185,228, 3, 0,170,
/* 0x0320 */ 224, 3, 3,170,225, 3, 2,170,224, 7,191,169, 35, 0,128, 82,
/* 0x0330 */ 8, 0,176, 82, 0, 16, 32,212,224, 7,193,168, 3, 0,128, 82,
/* 0x0340 */ 8, 0,176, 82, 0, 16, 32,212,224, 3, 4,170,254,135, 64,248,
/* 0x0330 */ 8, 0,176, 82, 1, 0, 0,212,224, 7,193,168, 3, 0,128, 82,
/* 0x0340 */ 8, 0,176, 82, 1, 0, 0,212,224, 3, 4,170,254,135, 64,248,
/* 0x0350 */ 192, 3, 95,214,132, 0, 4, 43, 68, 0, 0, 52,192, 3, 95,214,
/* 0x0360 */ 4, 20, 64, 56,132, 0, 4, 26,132, 32, 9, 83,132, 0, 4, 43,
/* 0x0370 */ 192, 3, 95,214, 33, 0,128, 82,240, 3, 30,170,246,255,255,151,