Re: [PATCH for 6.2 16/49] bsd-user: elfload: simplify bswap a bit.

2021-08-10 Thread Richard Henderson
On 8/7/21 11:42 AM, Warner Losh wrote: @@ -367,9 +383,7 @@ static abi_ulong load_elf_interp(struct elfhdr *interp_elf_ex, last_bss = 0; error = 0; -#ifdef BSWAP_NEEDED bswap_ehdr(interp_elf_ex); -#endif /* First of all, some simple consistency checks */ if ((int

Re: [PATCH for 6.2 16/49] bsd-user: elfload: simplify bswap a bit.

2021-08-07 Thread Richard Henderson
On 8/7/21 11:42 AM, Warner Losh wrote: Reduce the number of ifdefs by always calling the swapping routine, but making them empty when swapping isn't needed. Signed-off-by: Warner Losh --- bsd-user/elfload.c | 97 ++ 1 file changed, 47 insertions(+),

[PATCH for 6.2 16/49] bsd-user: elfload: simplify bswap a bit.

2021-08-07 Thread Warner Losh
Reduce the number of ifdefs by always calling the swapping routine, but making them empty when swapping isn't needed. Signed-off-by: Warner Losh --- bsd-user/elfload.c | 97 ++ 1 file changed, 47 insertions(+), 50 deletions(-) diff --git a/bsd-user/el