mirror of https://github.com/upx/upx.git
stub *-linux.elf-entry.S often must define label upx_mmap_and_fd
modified: p_lx_elf.cpp modified: stub/src/arm.v4a-linux.elf-entry.S modified: stub/src/arm.v4a-linux.elf-so_entry.S modified: stub/src/i386-linux.elf-entry.S
This commit is contained in:
parent
c8515ae862
commit
8782778eb3
|
@ -1601,6 +1601,9 @@ PackLinuxElf32::buildLinuxLoader(
|
|||
|| this->e_machine==Elf32_Ehdr::EM_ARM) {
|
||||
addLoader((opt->o_unix.android_old ? "UMF_ANDROID" : "UMF_LINUX"));
|
||||
}
|
||||
else {
|
||||
addLoader("UMF_LINUX");
|
||||
}
|
||||
addLoader("ELFMAINZ,FOLDEXEC,IDENTSTR");
|
||||
}
|
||||
else if (this->e_machine==Elf32_Ehdr::EM_NONE
|
||||
|
|
|
@ -271,7 +271,7 @@ f_expand:
|
|||
#include "arch/arm/v4a/nrv2b_d8.S"
|
||||
|
||||
.balign 4
|
||||
upx_mmap_and_fd:
|
||||
upx_mmap_and_fd: .globl upx_mmap_and_fd
|
||||
// section UMF_LINUX or UMF_ANDROID goes here
|
||||
|
||||
section ELFMAINY
|
||||
|
|
|
@ -245,6 +245,8 @@ f_decompress:
|
|||
// MATCH_01 argv
|
||||
// MATCH_07 envp
|
||||
|
||||
upx_mmap_and_fd: .globl upx_mmap_and_fd
|
||||
|
||||
// IDENTSTR goes here
|
||||
|
||||
section ELFMAINZ
|
||||
|
|
|
@ -410,8 +410,8 @@ my_bkpt: .globl my_bkpt
|
|||
ret
|
||||
|
||||
.balign 4
|
||||
upx_mmap_and_fd:
|
||||
// section UMF_LINUX or UMF_ANDROID goes here
|
||||
upx_mmap_and_fd: .globl upx_mmap_and_fd
|
||||
// section UMF_LINUX or UMF_ANDROID goes here
|
||||
|
||||
section ELFMAINZ
|
||||
L70:
|
||||
|
|
Loading…
Reference in New Issue