Old powerpc* kernels lack MFD_EXEC

For example: Debian 3.16.43-2+deb8u5 (2017-09-19)
	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
	modified:   stub/Makefile
	modified:   stub/src/powerpc-linux.elf-entry.S
	modified:   stub/src/powerpc-linux.elf-fold.S
	modified:   stub/src/powerpc64-linux.elf-entry.S
	modified:   stub/src/powerpc64-linux.elf-fold.S
           plus generated .h, .dump, .map
This commit is contained in:
John Reiser
2025-02-16 15:33:58 -08:00
committed by Markus F.X.J. Oberhumer
parent 0144f81c28
commit c0bf7bf9ab
18 changed files with 3424 additions and 3350 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ Sections:
Idx Name Size VMA LMA File off Algn Flags
0 ELFMAINX 0138 0 0 034 2**0 CONTENTS
1 ELFMAINY 0 0 0 016c 2**0 CONTENTS
2 ELFMAINZ 0140 0 0 016c 2**0 CONTENTS
2 ELFMAINZ 0158 0 0 016c 2**0 CONTENTS
SYMBOL TABLE:
00000000 l d ELFMAINX 0 ELFMAINX
00000000 l d ELFMAINZ 0 ELFMAINZ
@@ -14,9 +14,9 @@ SYMBOL TABLE:
RELOCATION RECORDS FOR [ELFMAINX]:
OFFSET TYPE VALUE
00000000 R_PPC_REL24 ELFMAINZ+0x000000f8
00000000 R_PPC_REL24 ELFMAINZ+0x00000110
RELOCATION RECORDS FOR [ELFMAINZ]:
OFFSET TYPE VALUE
00000064 R_PPC_REL24 ELFMAINX+0x00000004
0000013c R_PPC_ADDR32 O_BINFO
0000007c R_PPC_REL24 ELFMAINX+0x00000004
00000154 R_PPC_ADDR32 O_BINFO
+15 -15
View File
@@ -50,24 +50,24 @@ LOAD tmp/powerpc-expand.o
LOAD tmp/powerpc-linux.elf-main2.o
OUTPUT(tmp/powerpc-linux.elf-fold.bin elf32-powerpc)
SYSCALLS 0x0000000000000000 0xbc
SYSCALLS 0x0000000000000000 0xbc tmp/powerpc-linux.elf-fold.o
0x0000000000000058 munmap
0x0000000000000074 memcpy
SYSCALLS 0x0000000000000000 0xf8
SYSCALLS 0x0000000000000000 0xf8 tmp/powerpc-linux.elf-fold.o
0x0000000000000050 munmap
0x00000000000000b0 memcpy
0x0000000000000010 readlink
0x0000000000000020 ftruncate
0x0000000000000060 mmap
0x0000000000000030 write
0x0000000000000018 memfd_create
0x0000000000000038 read
0x0000000000000098 memset
0x0000000000000050 msync
0x00000000000000b4 my_bkpt
0x0000000000000018 ftruncate
0x0000000000000058 mmap
0x0000000000000028 write
0x000000000000006c memfd_create
0x0000000000000030 read
0x00000000000000d4 memset
0x0000000000000048 msync
0x00000000000000f0 my_bkpt
0x0000000000000000 exit
0x0000000000000008 brk
0x0000000000000040 open
0x0000000000000048 mprotect
0x0000000000000028 close
0x0000000000000038 open
0x0000000000000040 mprotect
0x0000000000000020 close
EXP_HEAD 0x0000000000000000 0xa8
EXP_HEAD 0x0000000000000000 0xa8 tmp/powerpc-expand.o
+3 -3
View File
@@ -5,7 +5,7 @@ Idx Name Size VMA LMA File off Algn
0 ELFMAINX 013c 0 0 040 2**0 CONTENTS
1 ELFMAINY 0 0 0 017c 2**0 CONTENTS
2 ELFMAINZe 018 0 0 0180 2**3 CONTENTS
3 ELFMAINZ 01b8 0 0 0198 2**0 CONTENTS
3 ELFMAINZ 01d0 0 0 0198 2**0 CONTENTS
SYMBOL TABLE:
0000000000000000 l d ELFMAINZ 0 ELFMAINZ
0000000000000000 l d ELFMAINX 0 ELFMAINX
@@ -17,7 +17,7 @@ SYMBOL TABLE:
RELOCATION RECORDS FOR [ELFMAINX]:
OFFSET TYPE VALUE
0000000000000000 R_PPC64_REL24 ELFMAINZ+0x00000000000000fc
0000000000000000 R_PPC64_REL24 ELFMAINZ+0x0000000000000114
RELOCATION RECORDS FOR [ELFMAINZe]:
OFFSET TYPE VALUE
@@ -25,4 +25,4 @@ OFFSET TYPE VALUE
RELOCATION RECORDS FOR [ELFMAINZ]:
OFFSET TYPE VALUE
00000000000001b4 R_PPC64_ADDR32 O_BINFO
00000000000001cc R_PPC64_ADDR32 O_BINFO
+14 -14
View File
@@ -27,24 +27,24 @@ OUTPUT(tmp/powerpc64-linux.elf-fold.bin elf64-powerpc)
.bss 0x0000000000000000 0x0
.bss 0x0000000000000000 0x0 tmp/powerpc64-linux.elf-fold.o
SYSCALLS 0x0000000000000000 0x104
SYSCALLS 0x0000000000000000 0x104 tmp/powerpc64-linux.elf-fold.o
SYSCALLS 0x0000000000000000 0x140
SYSCALLS 0x0000000000000000 0x140 tmp/powerpc64-linux.elf-fold.o
0x0000000000000008 mmap
0x0000000000000020 munmap
0x0000000000000028 mprotect
0x0000000000000030 msync
0x0000000000000038 memfd_create
0x0000000000000040 ftruncate
0x0000000000000048 exit
0x0000000000000050 brk
0x0000000000000058 readlink
0x0000000000000060 write
0x0000000000000068 read
0x0000000000000070 open
0x0000000000000078 close
0x0000000000000080 upxfd_create
0x00000000000000d8 memcpy
0x00000000000000fc my_bkpt
0x0000000000000038 ftruncate
0x0000000000000040 exit
0x0000000000000048 brk
0x0000000000000050 readlink
0x0000000000000058 write
0x0000000000000060 read
0x0000000000000068 open
0x0000000000000070 close
0x0000000000000078 upxfd_create
0x00000000000000d0 memfd_create
0x0000000000000114 memcpy
0x0000000000000138 my_bkpt
.comment 0x0000000000000000 0x33
.comment 0x0000000000000000 0x33 tmp/powerpc64-linux.elf-fold.o
+3 -3
View File
@@ -4,7 +4,7 @@ Sections:
Idx Name Size VMA LMA File off Algn Flags
0 ELFMAINX 013c 0 0 040 2**0 CONTENTS
1 ELFMAINY 0 0 0 017c 2**0 CONTENTS
2 ELFMAINZ 01b8 0 0 017c 2**0 CONTENTS
2 ELFMAINZ 01d0 0 0 017c 2**0 CONTENTS
SYMBOL TABLE:
0000000000000000 l d ELFMAINZ 0 ELFMAINZ
0000000000000000 l d ELFMAINX 0 ELFMAINX
@@ -14,8 +14,8 @@ SYMBOL TABLE:
RELOCATION RECORDS FOR [ELFMAINX]:
OFFSET TYPE VALUE
0000000000000000 R_PPC64_REL24 ELFMAINZ+0x00000000000000fc
0000000000000000 R_PPC64_REL24 ELFMAINZ+0x0000000000000114
RELOCATION RECORDS FOR [ELFMAINZ]:
OFFSET TYPE VALUE
00000000000001b4 R_PPC64_ADDR32 O_BINFO
00000000000001cc R_PPC64_ADDR32 O_BINFO
+14 -14
View File
@@ -27,24 +27,24 @@ OUTPUT(tmp/powerpc64le-linux.elf-fold.bin elf64-powerpcle)
.bss 0x0000000000000000 0x0
.bss 0x0000000000000000 0x0 tmp/powerpc64le-linux.elf-fold.o
SYSCALLS 0x0000000000000000 0x104
SYSCALLS 0x0000000000000000 0x104 tmp/powerpc64le-linux.elf-fold.o
SYSCALLS 0x0000000000000000 0x140
SYSCALLS 0x0000000000000000 0x140 tmp/powerpc64le-linux.elf-fold.o
0x0000000000000008 mmap
0x0000000000000020 munmap
0x0000000000000028 mprotect
0x0000000000000030 msync
0x0000000000000038 memfd_create
0x0000000000000040 ftruncate
0x0000000000000048 exit
0x0000000000000050 brk
0x0000000000000058 readlink
0x0000000000000060 write
0x0000000000000068 read
0x0000000000000070 open
0x0000000000000078 close
0x0000000000000080 upxfd_create
0x00000000000000d8 memcpy
0x00000000000000fc my_bkpt
0x0000000000000038 ftruncate
0x0000000000000040 exit
0x0000000000000048 brk
0x0000000000000050 readlink
0x0000000000000058 write
0x0000000000000060 read
0x0000000000000068 open
0x0000000000000070 close
0x0000000000000078 upxfd_create
0x00000000000000d0 memfd_create
0x0000000000000114 memcpy
0x0000000000000138 my_bkpt
.comment 0x0000000000000000 0x33
.comment 0x0000000000000000 0x33 tmp/powerpc64le-linux.elf-fold.o