diff --git a/default_payload.S b/default_payload.S index 92bc98a..df870ee 100644 --- a/default_payload.S +++ b/default_payload.S @@ -364,6 +364,7 @@ memory_patch_table_1: .long 0 memory_patch_table_2: PATCH_INST(elf2_func1 + elf2_func1_offset, li %r29, 1) + PATCH_INST(elf2_func2 + elf2_func2_offset, li %r11, 1) .long 0 memory_patch_table_3: PATCH_DATA(elf3_data, 0x5f746f6f) diff --git a/macros.h.S b/macros.h.S index 41649a6..700e05e 100644 --- a/macros.h.S +++ b/macros.h.S @@ -67,6 +67,8 @@ #define elf1_func2_offset 0x00 #define elf2_func1 0x2ed0c #define elf2_func1_offset 0x00 +#define elf2_func2 0x2ed0c +#define elf2_func2_offset 0x5c #define elf3_data 0x0022b888 #define elf4_data 0x000d68b8 @@ -118,6 +120,8 @@ #define elf1_func2_offset 0x00 #define elf2_func1 0xe6a8 #define elf2_func1_offset 0x00 +#define elf2_func2 0xe6a8 +#define elf2_func2_offset 0x5c #define elf3_data 0x00204048 #define elf4_data 0x000d3e10 @@ -164,6 +168,8 @@ #define elf1_func2_offset 0x00 #define elf2_func1 0xE6A8 #define elf2_func1_offset 0x00 +#define elf2_func2 0xE6A8 +#define elf2_func2_offset 0x5c #define elf3_data 0x203e90 #define elf4_data 0xd3e28 @@ -215,6 +221,8 @@ #define elf1_func2_offset 0x00 #define elf2_func1 0xe708 #define elf2_func1_offset 0x00 +#define elf2_func2 0xe708 +#define elf2_func2_offset 0x5c #define elf3_data 0x001EAE98 #define elf4_data 0x000D1D00