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
+27 -27
View File
@@ -2,34 +2,34 @@ file format elf64-powerpc
Sections:
Idx Name Size VMA LMA File off Algn Flags
0 MACOS000 00000008 0000000000000000 0000000000000000 00000040 2**0 CONTENTS, RELOC, READONLY
1 NRV_HEAD 00000000 0000000000000000 0000000000000000 00000048 2**0 CONTENTS, READONLY
2 NRV2E 00000154 0000000000000000 0000000000000000 00000048 2**0 CONTENTS, RELOC, READONLY
3 NRV2D 00000144 0000000000000000 0000000000000000 0000019c 2**0 CONTENTS, RELOC, READONLY
4 NRV2B 000000f8 0000000000000000 0000000000000000 000002e0 2**0 CONTENTS, RELOC, READONLY
5 LZMA_ELF00 00000094 0000000000000000 0000000000000000 000003d8 2**0 CONTENTS, RELOC, READONLY
6 LZMA_DEC30 00000028 0000000000000000 0000000000000000 0000046c 2**0 CONTENTS, READONLY
7 LZMA_DEC10 00000bc0 0000000000000000 0000000000000000 00000494 2**0 CONTENTS, READONLY
8 LZMA_DEC20 00000c74 0000000000000000 0000000000000000 00001054 2**0 CONTENTS, READONLY
9 NRV_TAIL 0000001c 0000000000000000 0000000000000000 00001cc8 2**0 CONTENTS, READONLY
10 CFLUSH 00000024 0000000000000000 0000000000000000 00001ce4 2**0 CONTENTS, READONLY
11 ELFMAINY 00000000 0000000000000000 0000000000000000 00001d08 2**0 CONTENTS, READONLY
12 ELFMAINZ 000002e8 0000000000000000 0000000000000000 00001d08 2**0 CONTENTS, READONLY
0 MACOS000 08 0 0 040 2**0 CONTENTS
1 NRV_HEAD 0 0 0 048 2**0 CONTENTS
2 NRV2E 0154 0 0 048 2**0 CONTENTS
3 NRV2D 0144 0 0 019c 2**0 CONTENTS
4 NRV2B 0f8 0 0 02e0 2**0 CONTENTS
5 LZMA_ELF00 094 0 0 03d8 2**0 CONTENTS
6 LZMA_DEC30 028 0 0 046c 2**0 CONTENTS
7 LZMA_DEC10 0bc0 0 0 0494 2**0 CONTENTS
8 LZMA_DEC20 0c74 0 0 01054 2**0 CONTENTS
9 NRV_TAIL 01c 0 0 01cc8 2**0 CONTENTS
10 CFLUSH 024 0 0 01ce4 2**0 CONTENTS
11 ELFMAINY 0 0 0 01d08 2**0 CONTENTS
12 ELFMAINZ 02e8 0 0 01d08 2**0 CONTENTS
SYMBOL TABLE:
0000000000000000 l d LZMA_DEC30 0000000000000000 LZMA_DEC30
0000000000000000 l d NRV_TAIL 0000000000000000 NRV_TAIL
0000000000000000 l d ELFMAINZ 0000000000000000 ELFMAINZ
0000000000000000 l d MACOS000 0000000000000000 MACOS000
0000000000000000 l d NRV_HEAD 0000000000000000 NRV_HEAD
0000000000000000 l d NRV2E 0000000000000000 NRV2E
0000000000000000 l d NRV2D 0000000000000000 NRV2D
0000000000000000 l d NRV2B 0000000000000000 NRV2B
0000000000000000 l d LZMA_ELF00 0000000000000000 LZMA_ELF00
0000000000000000 l d LZMA_DEC10 0000000000000000 LZMA_DEC10
0000000000000000 l d LZMA_DEC20 0000000000000000 LZMA_DEC20
0000000000000000 l d CFLUSH 0000000000000000 CFLUSH
0000000000000000 l d ELFMAINY 0000000000000000 ELFMAINY
0000000000000000 g MACOS000 0000000000000000 _start
0000000000000000 l d LZMA_DEC30 0 LZMA_DEC30
0000000000000000 l d NRV_TAIL 0 NRV_TAIL
0000000000000000 l d ELFMAINZ 0 ELFMAINZ
0000000000000000 l d MACOS000 0 MACOS000
0000000000000000 l d NRV_HEAD 0 NRV_HEAD
0000000000000000 l d NRV2E 0 NRV2E
0000000000000000 l d NRV2D 0 NRV2D
0000000000000000 l d NRV2B 0 NRV2B
0000000000000000 l d LZMA_ELF00 0 LZMA_ELF00
0000000000000000 l d LZMA_DEC10 0 LZMA_DEC10
0000000000000000 l d LZMA_DEC20 0 LZMA_DEC20
0000000000000000 l d CFLUSH 0 CFLUSH
0000000000000000 l d ELFMAINY 0 ELFMAINY
0000000000000000 g MACOS000 0 _start
RELOCATION RECORDS FOR [MACOS000]:
OFFSET TYPE VALUE