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:
John Reiser 2024-11-26 19:43:14 -08:00
parent c8515ae862
commit 8782778eb3
4 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: