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
+30 -30
View File
@@ -2,37 +2,37 @@ file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn Flags
0 MACHMAINX 0000000c 00000000 00000000 00000034 2**0 CONTENTS, RELOC, READONLY
1 NRV_HEAD 00000000 00000000 00000000 00000040 2**0 CONTENTS, READONLY
2 NRV2E 00000144 00000000 00000000 00000040 2**0 CONTENTS, RELOC, READONLY
3 NRV2D 00000130 00000000 00000000 00000184 2**0 CONTENTS, RELOC, READONLY
4 NRV2B 000000f4 00000000 00000000 000002b4 2**0 CONTENTS, RELOC, READONLY
5 NRV_TAIL 00000000 00000000 00000000 000003a8 2**0 CONTENTS, READONLY
6 LZMA_ELF00 000000c0 00000000 00000000 000003a8 2**0 CONTENTS, RELOC, READONLY
7 LZMA_DEC20 00000938 00000000 00000000 00000468 2**0 CONTENTS, RELOC, READONLY
8 LZMA_DEC10 00000478 00000000 00000000 00000da0 2**0 CONTENTS, RELOC, READONLY
9 LZMA_DEC30 00000000 00000000 00000000 00001218 2**0 CONTENTS, READONLY
10 MACHMAINY 00000000 00000000 00000000 00001218 2**0 CONTENTS, READONLY
11 MACHMAINZ 00000184 00000000 00000000 00001218 2**0 CONTENTS, RELOC, READONLY
0 MACHMAINX 0c 0 0 034 2**0 CONTENTS
1 NRV_HEAD 0 0 0 040 2**0 CONTENTS
2 NRV2E 0144 0 0 040 2**0 CONTENTS
3 NRV2D 0130 0 0 0184 2**0 CONTENTS
4 NRV2B 0f4 0 0 02b4 2**0 CONTENTS
5 NRV_TAIL 0 0 0 03a8 2**0 CONTENTS
6 LZMA_ELF00 0c0 0 0 03a8 2**0 CONTENTS
7 LZMA_DEC20 0938 0 0 0468 2**0 CONTENTS
8 LZMA_DEC10 0478 0 0 0da0 2**0 CONTENTS
9 LZMA_DEC30 0 0 0 01218 2**0 CONTENTS
10 MACHMAINY 0 0 0 01218 2**0 CONTENTS
11 MACHMAINZ 0184 0 0 01218 2**0 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 MACHMAINZ 00000000 MACHMAINZ
00000000 l d MACHMAINX 00000000 MACHMAINX
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 MACHMAINY 00000000 MACHMAINY
00000000 g MACHMAINX 00000000 _start
00000000 g F NRV2E 00000144 ucl_nrv2e_decompress_8
00000000 g F NRV2D 00000130 ucl_nrv2d_decompress_8
00000000 g F NRV2B 000000f4 ucl_nrv2b_decompress_8
00000000 g LZMA_DEC10 00000000 LzmaDecode
00000000 g MACHMAINY 00000000 end_decompress
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 MACHMAINZ 0 MACHMAINZ
00000000 l d MACHMAINX 0 MACHMAINX
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 MACHMAINY 0 MACHMAINY
00000000 g MACHMAINX 0 _start
00000000 g F NRV2E 0144 ucl_nrv2e_decompress_8
00000000 g F NRV2D 0130 ucl_nrv2d_decompress_8
00000000 g F NRV2B 0f4 ucl_nrv2b_decompress_8
00000000 g LZMA_DEC10 0 LzmaDecode
00000000 g MACHMAINY 0 end_decompress
RELOCATION RECORDS FOR [MACHMAINX]:
OFFSET TYPE VALUE