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
+4 -4
View File
@@ -10,10 +10,10 @@ Idx Name Size VMA LMA File off Algn
5 NRV2B 0144 0 0 0334 2**0 CONTENTS
6 LZMA_ELF00 010c 0 0 0478 2**0 CONTENTS
7 LZMA_DEC20 0968 0 0 0584 2**0 CONTENTS
8 LZMA_DEC10 049c 0 0 0eec 2**0 CONTENTS
9 LZMA_DEC30 0 0 0 01388 2**0 CONTENTS
10 ELFMAINY 03e 0 0 01388 2**0 CONTENTS
11 ELFMAINZ 0138 0 0 013c8 2**2 CONTENTS
8 LZMA_DEC10 04a0 0 0 0eec 2**0 CONTENTS
9 LZMA_DEC30 0 0 0 0138c 2**0 CONTENTS
10 ELFMAINY 03e 0 0 0138c 2**0 CONTENTS
11 ELFMAINZ 0138 0 0 013cc 2**2 CONTENTS
SYMBOL TABLE:
0000000000000000 l d LZMA_DEC30 0 LZMA_DEC30
0000000000000000 l d ELFMAINZ 0 ELFMAINZ