imgact_elf: Avoid redefining suword()

Otherwise this interferes with the definition for sanitizer
interceptors.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ebf9886654)
This commit is contained in:
Mark Johnston 2021-07-23 15:40:54 -04:00
parent fdeacf8fdf
commit 24c558ca3c

View file

@ -1345,7 +1345,7 @@ ret:
return (error);
}
#define suword __CONCAT(suword, __ELF_WORD_SIZE)
#define elf_suword __CONCAT(suword, __ELF_WORD_SIZE)
int
__elfN(freebsd_copyout_auxargs)(struct image_params *imgp, uintptr_t base)
@ -1418,7 +1418,7 @@ __elfN(freebsd_fixup)(uintptr_t *stack_base, struct image_params *imgp)
base = (Elf_Addr *)*stack_base;
base--;
if (suword(base, imgp->args->argc) == -1)
if (elf_suword(base, imgp->args->argc) == -1)
return (EFAULT);
*stack_base = (uintptr_t)base;
return (0);