ELF2: stub for i386 shared library

WIP: stub is debugged, but compressed input needs work
	modified:   stub/src/arm.v4a-linux.elf-so_entry.S
	modified:   stub/src/i386-linux.elf-so_entry.S
	modified:   stub/src/i386-linux.elf-so_fold.S
	modified:   stub/src/i386-linux.elf-so_main.c
	modified:   stub/src/include/linux.h
           plus generated *.h *.dump
This commit is contained in:
John Reiser
2024-08-12 07:53:00 -07:00
parent 94eebc3ee5
commit cb39e6e0b8
15 changed files with 8104 additions and 7049 deletions
+9 -12
View File
@@ -2,12 +2,12 @@ file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn Flags
0 ELFMAINX 0635 0 0 034 2**2 CONTENTS
1 ELFMAINZ 0a 0 0 0669 2**0 CONTENTS
0 ELFMAINX 064e 0 0 034 2**2 CONTENTS
1 ELFMAINZ 0a 0 0 0682 2**0 CONTENTS
SYMBOL TABLE:
00000000 l d ELFMAINX 0 ELFMAINX
00000000 l d ELFMAINZ 0 ELFMAINZ
000003f7 g F ELFMAINX 023e upx_mmap_and_fd
000003f6 g F ELFMAINX 0258 upx_mmap_and_fd
00000000 *UND* 0 O_BINFO
000001cc g ELFMAINX 0 mempcpy
00000172 g ELFMAINX 0 mmap
@@ -24,15 +24,12 @@ OFFSET TYPE VALUE
00000005 R_386_PC32 ELFMAINZ
000000a5 R_386_PC32 upx_mmap_and_fd
0000014a R_386_PC32 mmap
00000207 R_386_PC32 memset
0000020e R_386_PC32 stat
0000023c R_386_PC32 mkdir
0000032b R_386_PC32 mempcpy
00000475 R_386_PC32 my_bkpt
00000484 R_386_PC32 uname
000004de R_386_PC32 get_upxfn_path
00000585 R_386_PC32 memset
00000609 R_386_PC32 mmap
00000204 R_386_PC32 memset
0000032a R_386_PC32 mempcpy
00000474 R_386_PC32 my_bkpt
000004ed R_386_PC32 get_upxfn_path
0000059e R_386_PC32 memset
00000622 R_386_PC32 mmap
RELOCATION RECORDS FOR [ELFMAINZ]:
OFFSET TYPE VALUE
+8 -8
View File
@@ -7,18 +7,18 @@ Name Origin Length Attributes
Linker script and memory map
.text 0x0000000000000000 0x176e
.text 0x0000000000000000 0x1786
.text 0x0000000000000000 0x18b tmp/i386-linux.elf-fold.o
0x000000000000000c get_page_mask
0x0000000000000019 get_upxfn_path
*fill* 0x000000000000018b 0x1 00
.text 0x000000000000018c 0x445 tmp/i386-linux.elf-upxfd_android.o
0x0000000000000393 upx_mmap_and_fd
*fill* 0x00000000000005d1 0x3 00
.text 0x00000000000005d4 0x0 tmp/i386-expand.o
.text 0x00000000000005d4 0x119a tmp/i386-linux.elf-main2.o
0x00000000000016f1 underlay
0x0000000000001475 upx_main
.text 0x000000000000018c 0x45e tmp/i386-linux.elf-upxfd_android.o
0x0000000000000392 upx_mmap_and_fd
*fill* 0x00000000000005ea 0x2 00
.text 0x00000000000005ec 0x0 tmp/i386-expand.o
.text 0x00000000000005ec 0x119a tmp/i386-linux.elf-main2.o
0x0000000000001709 underlay
0x000000000000148d upx_main
.data 0x0000000000000000 0x0
.data 0x0000000000000000 0x0 tmp/i386-linux.elf-fold.o