1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Un-debug amd64-linux.elf-so_main.c

modified:   stub/src/amd64-linux.elf-so_main.c

	modified:   stub/amd64-linux.elf-so_fold.h
	modified:   stub/arm64-linux.elf-so_fold.h
	modified:   stub/tmp/amd64-linux.elf-so_fold.bin.dump
This commit is contained in:
John Reiser 2023-07-22 11:58:35 -07:00 committed by Markus F.X.J. Oberhumer
parent 05539ad5b6
commit efbc93229a
4 changed files with 2165 additions and 2575 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@ int Punmap(void *, size_t);
extern void f_int3(int arg);
#define DEBUG 1
#define DEBUG 0
#ifndef DEBUG //{
#define DEBUG 0

View File

@ -2,19 +2,19 @@ file format elf64-x86-64
Sections:
Idx Name Size VMA LMA File off Algn Flags
0 SO_MAIN 01259 0 0 040 2**4 CONTENTS
1 EXP_HEAD 0e0 0 0 01299 2**0 CONTENTS
2 NRV2E 0e5 0 0 01379 2**0 CONTENTS
3 NRV2D 0d7 0 0 0145e 2**0 CONTENTS
4 NRV2B 0c1 0 0 01535 2**0 CONTENTS
5 SO_HEAD 02c 0 0 015f6 2**0 CONTENTS
6 ptr_NEXT 0 0 0 01622 2**0 CONTENTS
7 SO_TAIL 098 0 0 01622 2**0 CONTENTS
8 LZMA_ELF00 064 0 0 016ba 2**0 CONTENTS
9 LZMA_DEC10 09f7 0 0 0171e 2**0 CONTENTS
10 LZMA_DEC20 09f7 0 0 02115 2**0 CONTENTS
11 LZMA_DEC30 018 0 0 02b0c 2**0 CONTENTS
12 EXP_TAIL 0c 0 0 02b24 2**0 CONTENTS
0 SO_MAIN 07b2 0 0 040 2**4 CONTENTS
1 EXP_HEAD 0e0 0 0 07f2 2**0 CONTENTS
2 NRV2E 0e5 0 0 08d2 2**0 CONTENTS
3 NRV2D 0d7 0 0 09b7 2**0 CONTENTS
4 NRV2B 0c1 0 0 0a8e 2**0 CONTENTS
5 SO_HEAD 02c 0 0 0b4f 2**0 CONTENTS
6 ptr_NEXT 0 0 0 0b7b 2**0 CONTENTS
7 SO_TAIL 098 0 0 0b7b 2**0 CONTENTS
8 LZMA_ELF00 064 0 0 0c13 2**0 CONTENTS
9 LZMA_DEC10 09f7 0 0 0c77 2**0 CONTENTS
10 LZMA_DEC20 09f7 0 0 0166e 2**0 CONTENTS
11 LZMA_DEC30 018 0 0 02065 2**0 CONTENTS
12 EXP_TAIL 0c 0 0 0207d 2**0 CONTENTS
SYMBOL TABLE:
0000000000000000 l d EXP_HEAD 0 EXP_HEAD
0000000000000000 l d LZMA_DEC30 0 LZMA_DEC30
@ -33,13 +33,12 @@ SYMBOL TABLE:
0000000000000000 g EXP_HEAD 0 f_expand
000000000000005f g SO_TAIL 0 munmap
000000000000001c g SO_TAIL 0 memcpy
0000000000000000 g F SO_MAIN 030 dprint8
0000000000000031 g SO_TAIL 0 O_BINFO
0000000000000067 g SO_TAIL 0 ftruncate
000000000000003f g SO_TAIL 0 mmap
0000000000000000 g F SO_TAIL 0 eof
000000000000007d g SO_TAIL 0 write
0000000000000680 g F SO_MAIN 01d PF_to_PROT
000000000000038e g F SO_MAIN 01d PF_to_PROT
000000000000006b g SO_TAIL 0 memfd_create
0000000000000081 g SO_TAIL 0 read
0000000000000013 g SO_TAIL 0 memset
@ -50,51 +49,45 @@ SYMBOL TABLE:
0000000000000076 g SO_TAIL 0 openat
0000000000000094 g SO_TAIL 0 mprotect
0000000000000072 g SO_TAIL 0 close
000000000000069d g F SO_MAIN 0800 upx_so_main
00000000000003ab g F SO_MAIN 0407 upx_so_main
RELOCATION RECORDS FOR [SO_MAIN]:
OFFSET TYPE VALUE
000000000000005e R_X86_64_PLT32 my_bkpt+0xfffffffffffffffc
0000000000000068 R_X86_64_PLT32 exit+0xfffffffffffffffc
00000000000000d5 R_X86_64_PLT32 exit+0xfffffffffffffffc
00000000000002d9 R_X86_64_PLT32 f_expand+0xfffffffffffffffc
0000000000000445 R_X86_64_PLT32 memfd_create+0xfffffffffffffffc
0000000000000460 R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000000482 R_X86_64_PLT32 mmap+0xfffffffffffffffc
000000000000048c R_X86_64_PLT32 close+0xfffffffffffffffc
000000000000051e R_X86_64_PLT32 openat+0xfffffffffffffffc
0000000000000536 R_X86_64_PLT32 read+0xfffffffffffffffc
0000000000000544 R_X86_64_PLT32 close+0xfffffffffffffffc
0000000000000625 R_X86_64_PLT32 memcpy+0xfffffffffffffffc
0000000000000646 R_X86_64_PLT32 mmap+0xfffffffffffffffc
0000000000000654 R_X86_64_PLT32 memcpy+0xfffffffffffffffc
000000000000079c R_X86_64_PLT32 mmap+0xfffffffffffffffc
00000000000007d1 R_X86_64_PLT32 memcpy+0xfffffffffffffffc
00000000000008f9 R_X86_64_PLT32 memfd_create+0xfffffffffffffffc
0000000000000912 R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000000926 R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000000935 R_X86_64_PLT32 munmap+0xfffffffffffffffc
000000000000093d R_X86_64_PLT32 PF_to_PROT+0xfffffffffffffffc
0000000000000958 R_X86_64_PLT32 mmap+0xfffffffffffffffc
000000000000095f R_X86_64_PLT32 close+0xfffffffffffffffc
0000000000000bf6 R_X86_64_PLT32 memfd_create+0xfffffffffffffffc
0000000000000c09 R_X86_64_PLT32 ftruncate+0xfffffffffffffffc
0000000000000c1d R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000000c44 R_X86_64_PLT32 mmap+0xfffffffffffffffc
0000000000000c7f R_X86_64_PLT32 Punmap+0xfffffffffffffffc
0000000000000da4 R_X86_64_PLT32 munmap+0xfffffffffffffffc
0000000000000dac R_X86_64_PLT32 PF_to_PROT+0xfffffffffffffffc
0000000000000dd7 R_X86_64_PLT32 Pmap+0xfffffffffffffffc
0000000000000de0 R_X86_64_PLT32 close+0xfffffffffffffffc
0000000000000dea R_X86_64_PLT32 PF_to_PROT+0xfffffffffffffffc
0000000000000e00 R_X86_64_PLT32 Pprotect+0xfffffffffffffffc
0000000000000e1b R_X86_64_PLT32 munmap+0xfffffffffffffffc
0000000000001078 R_X86_64_PLT32 write+0xfffffffffffffffc
00000000000010da R_X86_64_PLT32 write+0xfffffffffffffffc
000000000000112c R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000001180 R_X86_64_PLT32 write+0xfffffffffffffffc
00000000000011dc R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000001238 R_X86_64_PLT32 write+0xfffffffffffffffc
000000000000000d R_X86_64_PLT32 my_bkpt+0xfffffffffffffffc
0000000000000017 R_X86_64_PLT32 exit+0xfffffffffffffffc
000000000000002e R_X86_64_PLT32 exit+0xfffffffffffffffc
000000000000010e R_X86_64_PLT32 f_expand+0xfffffffffffffffc
00000000000001e9 R_X86_64_PLT32 memfd_create+0xfffffffffffffffc
0000000000000204 R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000000226 R_X86_64_PLT32 mmap+0xfffffffffffffffc
0000000000000230 R_X86_64_PLT32 close+0xfffffffffffffffc
0000000000000291 R_X86_64_PLT32 openat+0xfffffffffffffffc
00000000000002a9 R_X86_64_PLT32 read+0xfffffffffffffffc
00000000000002b7 R_X86_64_PLT32 close+0xfffffffffffffffc
0000000000000333 R_X86_64_PLT32 memcpy+0xfffffffffffffffc
0000000000000354 R_X86_64_PLT32 mmap+0xfffffffffffffffc
0000000000000362 R_X86_64_PLT32 memcpy+0xfffffffffffffffc
000000000000042e R_X86_64_PLT32 mmap+0xfffffffffffffffc
0000000000000441 R_X86_64_PLT32 memcpy+0xfffffffffffffffc
00000000000004e3 R_X86_64_PLT32 memfd_create+0xfffffffffffffffc
00000000000004fc R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000000510 R_X86_64_PLT32 write+0xfffffffffffffffc
000000000000051f R_X86_64_PLT32 munmap+0xfffffffffffffffc
0000000000000527 R_X86_64_PLT32 PF_to_PROT+0xfffffffffffffffc
0000000000000542 R_X86_64_PLT32 mmap+0xfffffffffffffffc
0000000000000549 R_X86_64_PLT32 close+0xfffffffffffffffc
000000000000062d R_X86_64_PLT32 memfd_create+0xfffffffffffffffc
000000000000063d R_X86_64_PLT32 ftruncate+0xfffffffffffffffc
000000000000064e R_X86_64_PLT32 write+0xfffffffffffffffc
0000000000000672 R_X86_64_PLT32 mmap+0xfffffffffffffffc
0000000000000684 R_X86_64_PLT32 Punmap+0xfffffffffffffffc
000000000000070f R_X86_64_PLT32 munmap+0xfffffffffffffffc
0000000000000717 R_X86_64_PLT32 PF_to_PROT+0xfffffffffffffffc
000000000000073f R_X86_64_PLT32 Pmap+0xfffffffffffffffc
0000000000000748 R_X86_64_PLT32 close+0xfffffffffffffffc
0000000000000752 R_X86_64_PLT32 PF_to_PROT+0xfffffffffffffffc
0000000000000768 R_X86_64_PLT32 Pprotect+0xfffffffffffffffc
0000000000000783 R_X86_64_PLT32 munmap+0xfffffffffffffffc
RELOCATION RECORDS FOR [NRV2E]:
OFFSET TYPE VALUE