Unused get_page_mask but satisfies external for upxfd_*.c

modified:   stub/src/i386-linux.elf-entry.S
This commit is contained in:
John Reiser 2024-12-10 17:10:27 -08:00 committed by Markus F.X.J. Oberhumer
parent e2f1e6697a
commit 5999b0a959

View File

@ -409,6 +409,13 @@ my_bkpt: .globl my_bkpt
int3 // my_bkpt int3 // my_bkpt
ret ret
// get_page_mask should never be called by _entry, because the 1st arg
// (the pointer) to upx_mmap_and_fd is 0. But in the general case
// there must be a get_page_mask subroutine. Return something plausible.
get_page_mask: .globl get_page_mask
mov $0xfffff000,%eax
ret
.balign 4 .balign 4
upx_mmap_and_fd: .globl upx_mmap_and_fd upx_mmap_and_fd: .globl upx_mmap_and_fd
// section UMF_LINUX or UMF_ANDROID goes here // section UMF_LINUX or UMF_ANDROID goes here