936013f60c
If not enough room on last page of .text, and ElfXX_Ehdr not PF_X, then the escape hatch must use a new page. https://github.com/upx/upx/issues/308 modified: ../.github/travis_testsuite_1-expected_sha256sums.sh modified: stub/src/amd64-linux.elf-main.c modified: stub/src/i386-linux.elf-main.c Plus stub/*-linux.elf-fold.h and stub/tmp/*-linux.elf-fold.map
44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
|
|
Memory Configuration
|
|
|
|
Name Origin Length Attributes
|
|
*default* 0x0000000000000000 0xffffffffffffffff
|
|
|
|
Linker script and memory map
|
|
|
|
TARGET(elf32-powerpc)
|
|
0x0000000000100080 . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
|
|
|
|
.text 0x0000000000100080 0x1044
|
|
*(.text)
|
|
.text 0x0000000000100080 0x250 tmp/powerpc-linux.elf-fold.o
|
|
0x0000000000100080 get_page_mask
|
|
0x00000000001002c0 munmap
|
|
0x0000000000100290 readlink
|
|
0x000000000010026c mmap
|
|
0x0000000000100298 write
|
|
0x00000000001002a0 read
|
|
0x00000000001002c8 my_bkpt
|
|
0x0000000000100280 exit
|
|
0x0000000000100288 brk
|
|
0x00000000001002a8 open
|
|
0x00000000001002b8 mprotect
|
|
0x00000000001002b0 close
|
|
.text 0x00000000001002d0 0xdf4 tmp/powerpc-linux.elf-main.o
|
|
0x0000000000100ec4 upx_main
|
|
*(.data)
|
|
.data 0x00000000001010c4 0x0 tmp/powerpc-linux.elf-fold.o
|
|
.data 0x00000000001010c4 0x0 tmp/powerpc-linux.elf-main.o
|
|
|
|
.data
|
|
|
|
.bss 0x00000000001010c4 0x0
|
|
.bss 0x00000000001010c4 0x0 tmp/powerpc-linux.elf-fold.o
|
|
.bss 0x00000000001010c4 0x0 tmp/powerpc-linux.elf-main.o
|
|
|
|
.rela.dyn 0x00000000001010c4 0x0
|
|
.rela.text 0x0000000000000000 0x0 tmp/powerpc-linux.elf-fold.o
|
|
LOAD tmp/powerpc-linux.elf-fold.o
|
|
LOAD tmp/powerpc-linux.elf-main.o
|
|
OUTPUT(tmp/powerpc-linux.elf-fold.bin elf32-powerpc)
|