amd64-linux revamp for compressing shared libraries

Major changes: p_lx_elf.cpp and stub/src/amd64-linux.elf-so*.
(Includes run-time infrastructure for multiple de-compressors.)
	modified:   linker.cpp
	modified:   p_lx_elf.cpp
	modified:   p_lx_elf.h
	modified:   p_unix.cpp
	modified:   p_unix.h
	modified:   stub/Makefile
	modified:   stub/src/amd64-darwin.dylib-entry.S
	modified:   stub/src/amd64-darwin.macho-entry.S
	new file:   stub/src/amd64-expand.S
	modified:   stub/src/amd64-linux.elf-entry.S
	new file:   stub/src/amd64-linux.elf-so_entry.S
	new file:   stub/src/amd64-linux.elf-so_fold.S
	new file:   stub/src/amd64-linux.elf-so_fold.lds
	new file:   stub/src/amd64-linux.elf-so_main.c
	modified:   stub/src/amd64-linux.shlib-init.S
	modified:   stub/src/amd64-win64.pep.S
	modified:   stub/src/arch/amd64/nrv2b_d.S
	modified:   stub/src/arch/amd64/nrv2d_d.S
	modified:   stub/src/arch/amd64/nrv2e_d.S
           plus many generated stub/*.h and stub/tmp/*.bin.dump
This commit is contained in:
John Reiser
2023-01-09 09:39:25 -08:00
committed by Markus F.X.J. Oberhumer
parent 5f3ebc8a7f
commit 26d8e9c4c5
133 changed files with 42126 additions and 48117 deletions
+33 -33
View File
@@ -2,40 +2,40 @@ file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn Flags
0 ELFMAINX 0000000c 00000000 00000000 00000034 2**0 CONTENTS, RELOC, READONLY
1 NRV_HEAD 00000000 00000000 00000000 00000040 2**0 CONTENTS, READONLY
2 NRV_TAIL 00000000 00000000 00000000 00000040 2**0 CONTENTS, READONLY
3 NRV2E 0000012c 00000000 00000000 00000040 2**0 CONTENTS, RELOC, READONLY
4 NRV2D 00000118 00000000 00000000 0000016c 2**0 CONTENTS, RELOC, READONLY
5 NRV2B 000000dc 00000000 00000000 00000284 2**0 CONTENTS, RELOC, READONLY
6 LZMA_ELF00 000000ac 00000000 00000000 00000360 2**0 CONTENTS, RELOC, READONLY
7 LZMA_DEC20 00000938 00000000 00000000 0000040c 2**0 CONTENTS, RELOC, READONLY
8 LZMA_DEC10 00000478 00000000 00000000 00000d44 2**0 CONTENTS, RELOC, READONLY
9 LZMA_DEC30 00000000 00000000 00000000 000011bc 2**0 CONTENTS, READONLY
10 ELFMAINY 00000000 00000000 00000000 000011bc 2**0 CONTENTS, READONLY
11 ELFMAINZ 000000f0 00000000 00000000 000011bc 2**2 CONTENTS, RELOC, READONLY
0 ELFMAINX 0c 0 0 034 2**0 CONTENTS
1 NRV_HEAD 0 0 0 040 2**0 CONTENTS
2 NRV_TAIL 0 0 0 040 2**0 CONTENTS
3 NRV2E 012c 0 0 040 2**0 CONTENTS
4 NRV2D 0118 0 0 016c 2**0 CONTENTS
5 NRV2B 0dc 0 0 0284 2**0 CONTENTS
6 LZMA_ELF00 0ac 0 0 0360 2**0 CONTENTS
7 LZMA_DEC20 0938 0 0 040c 2**0 CONTENTS
8 LZMA_DEC10 0478 0 0 0d44 2**0 CONTENTS
9 LZMA_DEC30 0 0 0 011bc 2**0 CONTENTS
10 ELFMAINY 0 0 0 011bc 2**0 CONTENTS
11 ELFMAINZ 0f0 0 0 011bc 2**2 CONTENTS
SYMBOL TABLE:
00000000 l d NRV2E 00000000 NRV2E
00000000 l d NRV2D 00000000 NRV2D
00000000 l d NRV2B 00000000 NRV2B
00000000 l d LZMA_ELF00 00000000 LZMA_ELF00
00000000 l d LZMA_DEC20 00000000 LZMA_DEC20
00000000 l d LZMA_DEC10 00000000 LZMA_DEC10
00000000 l d ELFMAINZ 00000000 ELFMAINZ
00000000 l d ELFMAINX 00000000 ELFMAINX
00000000 l d NRV_HEAD 00000000 NRV_HEAD
00000000 l d NRV_TAIL 00000000 NRV_TAIL
00000000 l d LZMA_DEC30 00000000 LZMA_DEC30
00000000 l d ELFMAINY 00000000 ELFMAINY
00000000 *UND* 00000000 MFLG
00000004 g ELFMAINX 00000000 _start
00000000 g F NRV2E 0000012c ucl_nrv2e_decompress_8
00000000 g F NRV2D 00000118 ucl_nrv2d_decompress_8
00000000 g F NRV2B 000000dc ucl_nrv2b_decompress_8
00000000 g LZMA_DEC10 00000000 LzmaDecode
00000000 g ELFMAINY 00000000 end_decompress
00000000 *UND* 00000000 O_BINFO
000000f0 g ELFMAINZ 00000000 cpr0
00000000 l d NRV2E 0 NRV2E
00000000 l d NRV2D 0 NRV2D
00000000 l d NRV2B 0 NRV2B
00000000 l d LZMA_ELF00 0 LZMA_ELF00
00000000 l d LZMA_DEC20 0 LZMA_DEC20
00000000 l d LZMA_DEC10 0 LZMA_DEC10
00000000 l d ELFMAINZ 0 ELFMAINZ
00000000 l d ELFMAINX 0 ELFMAINX
00000000 l d NRV_HEAD 0 NRV_HEAD
00000000 l d NRV_TAIL 0 NRV_TAIL
00000000 l d LZMA_DEC30 0 LZMA_DEC30
00000000 l d ELFMAINY 0 ELFMAINY
00000000 *UND* 0 MFLG
00000004 g ELFMAINX 0 _start
00000000 g F NRV2E 012c ucl_nrv2e_decompress_8
00000000 g F NRV2D 0118 ucl_nrv2d_decompress_8
00000000 g F NRV2B 0dc ucl_nrv2b_decompress_8
00000000 g LZMA_DEC10 0 LzmaDecode
00000000 g ELFMAINY 0 end_decompress
00000000 *UND* 0 O_BINFO
000000f0 g ELFMAINZ 0 cpr0
RELOCATION RECORDS FOR [ELFMAINX]:
OFFSET TYPE VALUE