help_umf.S for MIPS and PPC

modified:   p_lx_elf.cpp
	modified:   stub/Makefile
	modified:   stub/src/mips.r3000-linux.elf-help_umf.S
	modified:   stub/src/mipsel.r3000-linux.elf-entry.S
	modified:   stub/src/mipsel.r3000-linux.elf-help_umf.S
	new file:   stub/src/powerpc-linux.elf-help_umf.S
This commit is contained in:
John Reiser
2024-12-05 11:06:09 -08:00
parent ebe6272ac7
commit 330ac2443c
6 changed files with 86 additions and 53 deletions
+2 -1
View File
@@ -1613,7 +1613,8 @@ PackLinuxElf32::buildLinuxLoader(
addLoader("ELFMAINX");
// Only if $ARCH-linux.elf-entry.S calls upx_mmap_and_fd instead of memfd_create
if (this->e_machine != Elf32_Ehdr::EM_PPC) // FIXME: also MIPS?
if (this->e_machine != Elf32_Ehdr::EM_PPC
&& this->e_machine != Elf32_Ehdr::EM_MIPS)
addLoader((sec_arm_attr || is_asl || opt->o_unix.android_shlib)
? "HUMF_A,UMF_ANDROID"
: "HUMF_L,UMF_LINUX");