9e8de4abe5
The stub occupies the same region that execve() would create for the original progam. The stub copies everything to a new area, erases the original region, replaces it with the de-compressed program, and erases the copy of itself via the escape hatch. The copy is inexpensive via mmap() of /proc/self/exe. modified: stub/src/i386-linux.elf-entry.S modified: stub/src/i386-linux.elf-fold.S modified: stub/src/i386-linux.elf-main.c modified: p_lx_elf.cpp modified: p_lx_elf.h modified: p_lx_interp.cpp modified: p_lx_interp.h modified: p_lx_sh.cpp modified: p_lx_sh.h modified: p_mach.cpp modified: p_mach.h modified: p_unix.cpp modified: p_unix.h modified: p_vmlinx.cpp plus .h, .map, .dump
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
|
|
Memory Configuration
|
|
|
|
Name Origin Length Attributes
|
|
*default* 0x0000000000000000 0xffffffffffffffff
|
|
|
|
Linker script and memory map
|
|
|
|
TARGET(elf32-bigmips)
|
|
0x0000000000100080 . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
|
|
|
|
.text 0x0000000000100080 0x940
|
|
*(.text)
|
|
.text 0x0000000000100080 0x130 tmp/mips.r3000-linux.elf-fold.o
|
|
.text 0x00000000001001b0 0x810 tmp/mips.r3000-linux.elf-main.o
|
|
0x0000000000100830 upx_main
|
|
*(.data)
|
|
.data 0x00000000001009c0 0x0 tmp/mips.r3000-linux.elf-fold.o
|
|
.data 0x00000000001009c0 0x0 tmp/mips.r3000-linux.elf-main.o
|
|
|
|
.data
|
|
|
|
.bss 0x00000000001009c0 0x0
|
|
.bss 0x00000000001009c0 0x0 tmp/mips.r3000-linux.elf-fold.o
|
|
.bss 0x00000000001009c0 0x0 tmp/mips.r3000-linux.elf-main.o
|
|
LOAD tmp/mips.r3000-linux.elf-fold.o
|
|
LOAD tmp/mips.r3000-linux.elf-main.o
|
|
OUTPUT(tmp/mips.r3000-linux.elf-fold.bin elf32-bigmips)
|
|
|
|
.pdr 0x0000000000000000 0x0
|
|
.pdr 0x0000000000000000 0x0 tmp/mips.r3000-linux.elf-fold.o
|
|
|
|
.mdebug.eabi32 0x0000000000000000 0x0
|
|
.mdebug.eabi32
|
|
0x0000000000000000 0x0 tmp/mips.r3000-linux.elf-main.o
|
|
|
|
.gcc_compiled_long32
|
|
0x0000000000000000 0x0
|
|
.gcc_compiled_long32
|
|
0x0000000000000000 0x0 tmp/mips.r3000-linux.elf-main.o
|