Many changes for ELF shared libraries on Linux and Android

Handling more than 2 PT_LOAD (and thus more than 1 executable PT_LOAD)
required extensive changes.  But the bonus is the infrastructure
to support a different (de-)compression algorithm for each PT_LOAD.

https://github.com/upx/upx/issues/341   i386 .so decompression
https://github.com/upx/upx/issues/609   armv7 .so on Android
https://github.com/upx/upx/issues/625   amd64 .so execution
https://github.com/upx/upx/issues/654   armv7 .exe
Not yet: .so on MIPS, PowerPC, PowerPC64
This commit is contained in:
John Reiser
2023-03-04 17:37:25 -08:00
committed by Markus F.X.J. Oberhumer
parent fa56a1d9cd
commit adb0ca8250
121 changed files with 15796 additions and 6036 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ Idx Name Size VMA LMA File off Algn
4 LZMA_HEAD 0 0 0 0470 2**0 CONTENTS
5 LZMA_ELF00 010c 0 0 0470 2**0 CONTENTS
6 LZMA_DEC20 0968 0 0 057c 2**0 CONTENTS
7 LZMA_DEC10 049c 0 0 0ee4 2**0 CONTENTS
8 LZMA_DEC30 0 0 0 01380 2**0 CONTENTS
9 LZMA_TAIL 0 0 0 01380 2**0 CONTENTS
7 LZMA_DEC10 04a0 0 0 0ee4 2**0 CONTENTS
8 LZMA_DEC30 0 0 0 01384 2**0 CONTENTS
9 LZMA_TAIL 0 0 0 01384 2**0 CONTENTS
SYMBOL TABLE:
0000000000000000 l d LZMA_DEC30 0 LZMA_DEC30
0000000000000000 l d NRV_HEAD 0 NRV_HEAD