[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/36] bsd-user: Remove image_info.start_brk
From: |
Warner Losh |
Subject: |
[PULL 03/36] bsd-user: Remove image_info.start_brk |
Date: |
Mon, 28 Aug 2023 17:37:48 -0600 |
From: Richard Henderson <richard.henderson@linaro.org>
This has the same value is image_info.brk, which is also logged,
and is otherwise unused.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230818175736.144194-4-richard.henderson@linaro.org>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/elfload.c | 2 +-
bsd-user/main.c | 2 --
bsd-user/qemu.h | 1 -
3 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index 2d39e59258e..baf2f63d2f1 100644
--- a/bsd-user/elfload.c
+++ b/bsd-user/elfload.c
@@ -811,7 +811,7 @@ int load_elf_binary(struct bsd_binprm *bprm, struct
target_pt_regs *regs,
bprm->stringp, &elf_ex, load_addr,
et_dyn_addr, interp_load_addr, info);
info->load_addr = reloc_func_desc;
- info->start_brk = info->brk = elf_brk;
+ info->brk = elf_brk;
info->start_stack = bprm->p;
info->load_bias = 0;
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 381bb18df80..f913cb55a72 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -553,8 +553,6 @@ int main(int argc, char **argv)
fprintf(f, "page layout changed following binary load\n");
page_dump(f);
- fprintf(f, "start_brk 0x" TARGET_ABI_FMT_lx "\n",
- info->start_brk);
fprintf(f, "end_code 0x" TARGET_ABI_FMT_lx "\n",
info->end_code);
fprintf(f, "start_code 0x" TARGET_ABI_FMT_lx "\n",
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 898fe3e8b34..61501c321b0 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -50,7 +50,6 @@ struct image_info {
abi_ulong end_code;
abi_ulong start_data;
abi_ulong end_data;
- abi_ulong start_brk;
abi_ulong brk;
abi_ulong rss;
abi_ulong start_stack;
--
2.41.0
- [PULL 00/36] 2023q3 bsd user patches, Warner Losh, 2023/08/28
- [PULL 01/36] bsd-user: Remove ELF_START_MMAP and image_info.start_mmap, Warner Losh, 2023/08/28
- [PULL 02/36] bsd-user: Remove image_info.mmap, Warner Losh, 2023/08/28
- [PULL 03/36] bsd-user: Remove image_info.start_brk,
Warner Losh <=
- [PULL 11/36] bsd-user: Add struct target_statfs, Warner Losh, 2023/08/28
- [PULL 10/36] bsd-user: Add structs target_freebsd11_{nstat,statfs}, Warner Losh, 2023/08/28
- [PULL 12/36] bsd-user: Add struct target_freebsd_fhandle and fcntl flags, Warner Losh, 2023/08/28
- [PULL 14/36] bsd-user: Rename target_freebsd_time_t to target_time_t, Warner Losh, 2023/08/28
- [PULL 07/36] bsd-user: Declarations of h2t and t2h conversion functions., Warner Losh, 2023/08/28
- [PULL 05/36] bsd-user: Disable clang warnings, Warner Losh, 2023/08/28
- [PULL 04/36] bsd-user: Move _WANT_FREEBSD macros to include/qemu/osdep.h, Warner Losh, 2023/08/28
- [PULL 13/36] bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h, Warner Losh, 2023/08/28
- [PULL 16/36] bsd-user: Implement h2t_freebsd_fhandle t2h_freebsd_fhandle, Warner Losh, 2023/08/28
- [PULL 18/36] bsd-user: Implement target_to_host_fcntl_cmd, Warner Losh, 2023/08/28