ARM64 hacking

modified:   p_lx_elf.cpp
	modified:   stub/src/arch/arm64/v8/macros.S
	modified:   stub/src/arm64-darwin.macho-fold.S
	modified:   stub/src/arm64-linux.elf-entry.S

	modified:   stub/arm64-darwin.macho-entry.h
	modified:   stub/arm64-darwin.macho-fold.h
	modified:   stub/arm64-linux.elf-entry.h
	modified:   stub/arm64-linux.elf-fold.h
	modified:   stub/tmp/arm64-darwin.macho-fold.map
	modified:   stub/tmp/arm64-linux.elf-entry.bin.dump
	modified:   stub/tmp/arm64-linux.elf-fold.map
This commit is contained in:
John Reiser
2017-03-14 20:08:28 -07:00
parent 68a2b91ccb
commit 9f554a14fd
11 changed files with 705 additions and 708 deletions
+9 -9
View File
@@ -32,8 +32,8 @@
#define STUB_ARM64_DARWIN_MACHO_ENTRY_SIZE 4261
#define STUB_ARM64_DARWIN_MACHO_ENTRY_ADLER32 0x08eeac06
#define STUB_ARM64_DARWIN_MACHO_ENTRY_CRC32 0xce42313b
#define STUB_ARM64_DARWIN_MACHO_ENTRY_ADLER32 0x1e78a809
#define STUB_ARM64_DARWIN_MACHO_ENTRY_CRC32 0x85f63991
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,
@@ -44,12 +44,12 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x0050 */ 230, 31, 3,169,232, 39, 4,169,234, 47, 5,169,236, 55, 6,169,
/* 0x0060 */ 238, 63, 7,169,240, 71, 8,169,242, 79, 9,169,244, 87, 10,169,
/* 0x0070 */ 246, 95, 11,169,248,103, 12,169,250,111, 13,169,252,119, 14,169,
/* 0x0080 */ 0, 0, 0,148,226,143,190,169,254, 11, 0,249, 7, 64, 33,139,
/* 0x0080 */ 0, 0, 0,148,226, 15,190,169,254, 11, 0,249, 7, 64, 33,139,
/* 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, 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,
/* 0x00d0 */ 8, 0,176, 82, 1, 0, 0,212,224, 3, 4,170,254, 7, 65,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,
@@ -64,7 +64,7 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x0190 */ 213,255,255,151, 33, 0, 1, 26, 33, 8, 0, 17,191, 0, 20, 49,
/* 0x01a0 */ 33, 52,129, 26, 67,192, 33,139, 99,240, 95, 56, 67,200,101, 56,
/* 0x01b0 */ 67, 20, 0, 56, 33, 4, 0,113,161,255,255, 84,212,255,255, 23,
/* 0x01c0 */ 226,143,190,169,254, 11, 0,249, 7, 64, 33,139, 5, 0,128, 18,
/* 0x01c0 */ 226, 15,190,169,254, 11, 0,249, 7, 64, 33,139, 5, 0,128, 18,
/* 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,
@@ -84,7 +84,7 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x02d0 */ 191, 0, 20, 49, 33, 52,129, 26, 67, 0, 64, 57, 67,200,101, 56,
/* 0x02e0 */ 67, 20, 0, 56, 33, 4, 0,113,161,255,255, 84,215,255,255, 23,
/* 0x02f0 */ 1, 64, 33,139,225, 11,190,169,227,123, 1,169, 5, 0,128, 18,
/* 0x0300 */ 4, 0,176, 82, 37, 0, 0, 20,228, 11, 64,249,225,143,193,168,
/* 0x0300 */ 4, 0,176, 82, 37, 0, 0, 20,228, 11, 64,249,225, 15,194,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, 1, 0, 0,212,224, 7,193,168, 3, 0,128, 82,
@@ -99,8 +99,8 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x03c0 */ 229,255,255,151, 33, 0, 1, 58,227,255,255,151, 33, 0, 1, 58,
/* 0x03d0 */ 97, 0, 0, 84,232,255,255,151, 33, 8, 0, 17,191, 0, 52, 49,
/* 0x03e0 */ 33, 36,129, 26, 67,200,101, 56, 33, 4, 0,113, 67, 20, 0, 56,
/* 0x03f0 */ 162,255,255, 84,233,255,255, 23,230,123,191,169,227,147,190,169,
/* 0x0400 */ 229, 11, 0,249,232, 3, 1,170, 45, 64, 34,139,233, 3, 4,170,
/* 0x03f0 */ 162,255,255, 84,233,255,255, 23,227, 19,189,169,229, 27, 1,169,
/* 0x0400 */ 254, 19, 0,249,232, 3, 1,170, 45, 64, 34,139,233, 3, 4,170,
/* 0x0410 */ 142, 64, 37,139,235, 3, 0,170, 6, 21, 64, 56,160, 5,128, 82,
/* 0x0420 */ 196, 8,192, 26, 0,124, 4, 27,198, 0, 0, 75, 32, 1,128, 82,
/* 0x0430 */ 197, 8,192, 26, 0,124, 5, 27,198, 0, 0, 75,174, 0, 6, 11,
@@ -178,7 +178,7 @@ unsigned char stub_arm64_darwin_macho_entry[4261] = {
/* 0x08b0 */ 193, 7, 64,185,194, 67, 33,139, 66, 48, 0,145,192, 67, 35,139,
/* 0x08c0 */ 0, 0, 3,145,228, 3, 1, 42, 73,204, 95,184,132, 16, 0, 81,
/* 0x08d0 */ 9,204, 31,184,164,255,255, 53,196, 11, 64,185,222, 3, 2,145,
/* 0x08e0 */ 227,143, 31,184,227, 3, 0,145,226, 3, 30,170,171, 32, 1,209,
/* 0x08e0 */ 227, 15, 31,184,227, 3, 0,145,226, 3, 30,170,171, 32, 1,209,
/* 0x08f0 */ 234, 3, 30,170,160, 0, 63,214, 64, 1, 31,214,229, 3, 30,170,
/* 0x0900 */ 235,255,255,151,102,105,108,101, 32,102,111,114,109, 97,116, 32,
/* 0x0910 */ 101,108,102, 54, 52, 45,108,105,116,116,108,101, 97, 97,114, 99,