On 8/3/24 09:56, Warner Losh wrote:
The zero_bss interface from linux-user is much better at doing this. Use
it in preference to set_brk (badly named) and padzero. These both have
issues with the new variable page size code, so it's best to just retire
them and reuse the code from linux-user. Also start to use the error
reporting code that linux-user uses to give better error messages on
failure.

Signed-off-by: Warner Losh<i...@bsdimp.com>
---
  bsd-user/elfload.c | 110 +++++++++++++++++++++++----------------------
  1 file changed, 57 insertions(+), 53 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to