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:
committed by
Markus F.X.J. Oberhumer
parent
fa56a1d9cd
commit
adb0ca8250
+4
-4
@@ -2,8 +2,8 @@ file format elf64-x86-64
|
||||
|
||||
Sections:
|
||||
Idx Name Size VMA LMA File off Algn Flags
|
||||
0 ELFMAINX 0b4 0 0 040 2**0 CONTENTS
|
||||
1 ELFMAINZ 05 0 0 0f4 2**0 CONTENTS
|
||||
0 ELFMAINX 0c7 0 0 040 2**0 CONTENTS
|
||||
1 ELFMAINZ 05 0 0 0107 2**0 CONTENTS
|
||||
SYMBOL TABLE:
|
||||
0000000000000000 l d ELFMAINX 0 ELFMAINX
|
||||
0000000000000000 l ELFMAINX 0 _start
|
||||
@@ -11,8 +11,8 @@ SYMBOL TABLE:
|
||||
|
||||
RELOCATION RECORDS FOR [ELFMAINX]:
|
||||
OFFSET TYPE VALUE
|
||||
0000000000000006 R_X86_64_PC32 ELFMAINZ+0xfffffffffffffffc
|
||||
0000000000000007 R_X86_64_PC32 ELFMAINZ+0xfffffffffffffffc
|
||||
|
||||
RELOCATION RECORDS FOR [ELFMAINZ]:
|
||||
OFFSET TYPE VALUE
|
||||
0000000000000001 R_X86_64_PC32 ELFMAINX+0x0000000000000015
|
||||
0000000000000001 R_X86_64_PC32 ELFMAINX+0x0000000000000016
|
||||
|
||||
Reference in New Issue
Block a user