bsd-user: Remove image_info.start_brk
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 18 Aug 2023 17:57:36 +0000 (10:57 -0700)
committerWarner Losh <imp@bsdimp.com>
Mon, 28 Aug 2023 18:16:18 +0000 (12:16 -0600)
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
bsd-user/main.c
bsd-user/qemu.h

index 2d39e59258e13a0af3d9490d8df5a5143571ddcc..baf2f63d2f171d7510a2b5305758de4aadb77ed8 100644 (file)
@@ -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;
 
index 381bb18df80cb0b97bc020ede2fb3e0f9e2324da..f913cb55a72992648f394bbcdface9f7096a8c0f 100644 (file)
@@ -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",
index 898fe3e8b34a19b8bdef9eb21ac402b0f5d91467..61501c321b08f6adf47d5e7dfc68b986f586d1f3 100644 (file)
@@ -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;