diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index 9cd3107a..e2af7287 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -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 diff --git a/src/stub/src/arm.v4a-linux.elf-entry.S b/src/stub/src/arm.v4a-linux.elf-entry.S index 08367dca..ca03d566 100644 --- a/src/stub/src/arm.v4a-linux.elf-entry.S +++ b/src/stub/src/arm.v4a-linux.elf-entry.S @@ -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 diff --git a/src/stub/src/arm.v4a-linux.elf-so_entry.S b/src/stub/src/arm.v4a-linux.elf-so_entry.S index f35e5ee3..f08099bd 100644 --- a/src/stub/src/arm.v4a-linux.elf-so_entry.S +++ b/src/stub/src/arm.v4a-linux.elf-so_entry.S @@ -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 diff --git a/src/stub/src/i386-linux.elf-entry.S b/src/stub/src/i386-linux.elf-entry.S index f95adffe..d59c2a68 100644 --- a/src/stub/src/i386-linux.elf-entry.S +++ b/src/stub/src/i386-linux.elf-entry.S @@ -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: