Remove PROT_WRITE from de-compressed folded code.

Safer; required for SELinux Enforcing mode;
but inhibits breakpoint debugging.
	modified:   stub/amd64-linux.elf-entry.h
	modified:   stub/mips.r3000-linux.elf-entry.h
	modified:   stub/mipsel.r3000-linux.elf-entry.h
	modified:   stub/powerpc-linux.elf-entry.h
	modified:   stub/src/amd64-linux.elf-entry.S
	modified:   stub/src/mipsel.r3000-linux.elf-entry.S
	modified:   stub/src/powerpc-linux.elf-entry.S
This commit is contained in:
John Reiser
2024-12-23 10:52:07 -08:00
committed by Markus F.X.J. Oberhumer
parent 7d907d9d65
commit 505f6b7373
7 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -33,8 +33,8 @@
/* clang-format off */
#define STUB_MIPS_R3000_LINUX_ELF_ENTRY_SIZE 2056
#define STUB_MIPS_R3000_LINUX_ELF_ENTRY_ADLER32 0x089e93a4
#define STUB_MIPS_R3000_LINUX_ELF_ENTRY_CRC32 0x5becc30b
#define STUB_MIPS_R3000_LINUX_ELF_ENTRY_ADLER32 0xfd6d93a2
#define STUB_MIPS_R3000_LINUX_ELF_ENTRY_CRC32 0x743aa3e3
unsigned char stub_mips_r3000_linux_elf_entry[2056] = {
/* 0x0000 */ 127, 69, 76, 70, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -76,7 +76,7 @@ unsigned char stub_mips_r3000_linux_elf_entry[2056] = {
/* 0x0240 */ 143,161, 0, 28,175,163, 0, 24,175,161, 0, 16, 2, 96, 48, 33,
/* 0x0250 */ 3,160, 40, 33, 2,224, 32, 33, 36, 2, 15,164, 0, 0, 0, 12,
/* 0x0260 */ 3,192,232, 33, 39,189,255,232,175,160, 0, 20,175,183, 0, 16,
/* 0x0270 */ 36, 7, 0, 1, 36, 6, 0, 7,142,133, 0, 0, 0, 0, 32, 33,
/* 0x0270 */ 36, 7, 0, 1, 36, 6, 0, 5,142,133, 0, 0, 0, 0, 32, 33,
/* 0x0280 */ 36, 2, 15,250, 0, 0, 0, 12, 39,189, 0, 24,175,162, 0, 24,
/* 0x0290 */ 36, 95, 0, 8, 2,224, 32, 33, 36, 2, 15,166, 0, 0, 0, 12,
/* 0x02a0 */ 3,224, 0, 8, 2,176,128, 33, 36, 2, 17, 2, 0, 0, 0, 12,