From nobody Mon Feb 9 14:26:23 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1692381533; cv=none; d=zohomail.com; s=zohoarc; b=dJcBV5um0Iwm8dzDZ+7VsLddvgPJLUjW/FqoaUkzwHlchf6FcgImpdiGK0PJWkJB0ImuBkv9ntzJopa4ZHMPiDBB9fASVCinvQETMjd6cLt/J5NSk0QffPoD80QvfVcWtbHZf0BkswKwj0IZg9tEvssF7dU+sqVZP10U/XFXZrI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692381533; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=249sRNpBkee3vxDmEKQSDMH45KuQ5/RjIJ294wQlUMs=; b=kPUDd+TYewVZ1b/lNLAHRufrNAsz7CfGAUy91joh/V0JGClh6Hdc38PBBjeJw/JzZ94xXYG1TO5jKGjn9trxeUjy8Tb4F3DgpVH/OiMdXPnr7aZ+uDoOmX5FUnHtOK0EWfKsJ32z+tN/pbW3goOjoS8WbBjkbR/jAZdjvVSMHtw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1692381533019381.18771725849217; Fri, 18 Aug 2023 10:58:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX3jD-00010Y-RT; Fri, 18 Aug 2023 13:57:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qX3jC-0000zM-9o for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:57:42 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX3jA-00049Z-3W for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:57:42 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-68872ca740bso988398b3a.2 for ; Fri, 18 Aug 2023 10:57:39 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:cf24:6daf:2b9e:7972]) by smtp.gmail.com with ESMTPSA id q11-20020a638c4b000000b005637030d00csm1838212pgn.30.2023.08.18.10.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Aug 2023 10:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692381458; x=1692986258; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=249sRNpBkee3vxDmEKQSDMH45KuQ5/RjIJ294wQlUMs=; b=HqLOi77xM81ARqzXiwXGuWtrQx2tnaNbti6NKcZfOWbdS4txF9jEveQt7txGl2VX/q +aCNs+crFfjySHSmIEGbxkqRcQGaTivb6e7uPU9AqIdePiKqzoQcuqMI5G73UdiQ+3mF UtM1DacsrPo5U+pxY1xcQykHMVSxoIjdTibTjPvyh0oh/pMkUYLdcGwDAqoutITBBkQR jsoAS+Ct2PXPnV3Ziqyi1/lyNPVQJBgsw7JcEHS4mtcv9FHerzshRNxY+w2OUiqilITd sCt15/E518iDcD4gWG+9oLaqTaTS/W0WJT1ZSQH9vF0YFBvi0Ie9pKgts+rPeGzZtCAy Y/cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692381458; x=1692986258; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=249sRNpBkee3vxDmEKQSDMH45KuQ5/RjIJ294wQlUMs=; b=CbYPV814UgYWb+B8joJmdE1zgj2OzVCsVIZbs5ttGWhccOoXR7VMPswgBjwQ32T7bF CSq+E6v2yIlzcz6FZuDVrSnw0GU25ullwlYaWBlhLaBt7fOyDav3mE44vJSV6ql7wsJ0 Wb+Iar2cyndBDCakVmaunx3IqwnpV2vccXYuRUo11YvYFu4gNyoBghNGFJ5JNQEdxKkx Ji2Pukuix5q0Uk4Hd82bp31juOGbDXXbpBGAYFUfDb9wdPJnFKbyWU8sn1n64FDbderg OCOsyZhPyGafuzFidg1ntdrCbbrIefX+g68lps4QnWn4j1bwINmvOpsHBefxghYMqC5N H5tw== X-Gm-Message-State: AOJu0YzlzDldodzS+v7xoFKkAXME7GsHa/P4aF+0dlqwknP04Ka8QUW1 jGPksFS+d24guMJ3J1VcWOXta2btw3mT3+oslEs= X-Google-Smtp-Source: AGHT+IFdYwBP8oamQXEFdqX7XXabjsTR10RqTvmf/p4TZEIfzRRpNuyrGHDWwpDcZR1xKS0sMGMHbg== X-Received: by 2002:a05:6a20:12ca:b0:140:6d68:ce07 with SMTP id v10-20020a056a2012ca00b001406d68ce07mr4784928pzg.52.1692381458589; Fri, 18 Aug 2023 10:57:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: imp@bsdimp.com Subject: [PATCH 1/3] bsd-user: Remove ELF_START_MMAP and image_info.start_mmap Date: Fri, 18 Aug 2023 10:57:34 -0700 Message-Id: <20230818175736.144194-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818175736.144194-1-richard.henderson@linaro.org> References: <20230818175736.144194-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1692381533616100001 Content-Type: text/plain; charset="utf-8" The start_mmap value is write-only. Remove the field and the defines that populated it. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- bsd-user/arm/target_arch_elf.h | 1 - bsd-user/i386/target_arch_elf.h | 1 - bsd-user/qemu.h | 1 - bsd-user/x86_64/target_arch_elf.h | 1 - bsd-user/elfload.c | 1 - 5 files changed, 5 deletions(-) diff --git a/bsd-user/arm/target_arch_elf.h b/bsd-user/arm/target_arch_elf.h index 935bce347f..b1c0fd2b32 100644 --- a/bsd-user/arm/target_arch_elf.h +++ b/bsd-user/arm/target_arch_elf.h @@ -20,7 +20,6 @@ #ifndef TARGET_ARCH_ELF_H #define TARGET_ARCH_ELF_H =20 -#define ELF_START_MMAP 0x80000000 #define ELF_ET_DYN_LOAD_ADDR 0x500000 =20 #define elf_check_arch(x) ((x) =3D=3D EM_ARM) diff --git a/bsd-user/i386/target_arch_elf.h b/bsd-user/i386/target_arch_el= f.h index cbcd1f08e2..4ac27b02e7 100644 --- a/bsd-user/i386/target_arch_elf.h +++ b/bsd-user/i386/target_arch_elf.h @@ -20,7 +20,6 @@ #ifndef TARGET_ARCH_ELF_H #define TARGET_ARCH_ELF_H =20 -#define ELF_START_MMAP 0x80000000 #define ELF_ET_DYN_LOAD_ADDR 0x01001000 #define elf_check_arch(x) (((x) =3D=3D EM_386) || ((x) =3D=3D EM_486)) =20 diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 8f2d6a3c78..178114b423 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -52,7 +52,6 @@ struct image_info { abi_ulong end_data; abi_ulong start_brk; abi_ulong brk; - abi_ulong start_mmap; abi_ulong mmap; abi_ulong rss; abi_ulong start_stack; diff --git a/bsd-user/x86_64/target_arch_elf.h b/bsd-user/x86_64/target_arc= h_elf.h index b244711888..e51c2faf08 100644 --- a/bsd-user/x86_64/target_arch_elf.h +++ b/bsd-user/x86_64/target_arch_elf.h @@ -20,7 +20,6 @@ #ifndef TARGET_ARCH_ELF_H #define TARGET_ARCH_ELF_H =20 -#define ELF_START_MMAP 0x2aaaaab000ULL #define ELF_ET_DYN_LOAD_ADDR 0x01021000 #define elf_check_arch(x) (((x) =3D=3D ELF_ARCH)) =20 diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 1f650bdde8..38a3439d2c 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -738,7 +738,6 @@ int load_elf_binary(struct bsd_binprm *bprm, struct tar= get_pt_regs *regs, /* OK, This is the point of no return */ info->end_data =3D 0; info->end_code =3D 0; - info->start_mmap =3D (abi_ulong)ELF_START_MMAP; info->mmap =3D 0; elf_entry =3D (abi_ulong) elf_ex.e_entry; =20 --=20 2.34.1 From nobody Mon Feb 9 14:26:23 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1692381512; cv=none; d=zohomail.com; s=zohoarc; b=XntQ8/RYP6J2nIiETrb7V8YlEhzFOL8ZoQ2jHS/Gd17k6nqmYipkjsKXYQls+GVkUcAzjTLHrqpqVVUW7b1eYXY40p+P1WnEkCOuykpfv0NWPECFWLXj+fH4zU/ekvQBFZPykusywPkMuGBnZ9gvh80vaqZHqFDgLnSf/abxKpw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692381512; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wdilCwPFymanBcvogkn2wHE26a1921DHapwmojyGce8=; b=Elrmbnl8wkP42g4IfYzO6I/PaOVKqNu8E14DmQTxxZ3GL7rDxeOaB0HdHLNBskN59LZ1W4y/7usrSwjtBP81N7RKim/r0bc74Af/mjBQ33WnuXBvKBIbK6SpkkT4CTOOyuJMEYOcgGCQah3YqXTcd/9U7cfW/vP89tAY4FhbABA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1692381511979401.78800556802014; Fri, 18 Aug 2023 10:58:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX3jE-00011O-Vj; Fri, 18 Aug 2023 13:57:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qX3jD-00010D-67 for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:57:43 -0400 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX3jA-00049k-Jx for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:57:42 -0400 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3a82db15081so761891b6e.0 for ; Fri, 18 Aug 2023 10:57:40 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:cf24:6daf:2b9e:7972]) by smtp.gmail.com with ESMTPSA id q11-20020a638c4b000000b005637030d00csm1838212pgn.30.2023.08.18.10.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Aug 2023 10:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692381459; x=1692986259; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wdilCwPFymanBcvogkn2wHE26a1921DHapwmojyGce8=; b=dvpTnjst9JON6CPOj3DAs2EIk93Jw9Tq8eEBxgDUlBWA59ZI0fScmRjP4ZFfSKVZZD qWT5I2E1RTkUS8Jq1XJmzkKUa/kjeQQ6Z+BlU07nQHt2/Q82s6MSxniLvPGoxPToaJ7t h697aKhHahnyDqXTUUfIw7sqasTJPldfHq4S7DEIlCodGfpademdxsN4QVirzDljAoZw RlChNGzv/fsblA9e6IuKWw4qy4fe44Bvf1VU/jvf27dO6jnnqB6p6AmobULrZPhIwey+ RAA0KX721cT0y2QHVFR0N4PZMIhId8HNW/oM61vPECzCr9TedJHXpKH1FU9TnWYH5Q9O AlLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692381459; x=1692986259; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wdilCwPFymanBcvogkn2wHE26a1921DHapwmojyGce8=; b=DY1U3e1+fICZGHh9xLZfGVqERiIVtSK4cdXJYWYjRpNrr77CQ8nuNLbdD6NaH4kx+K UwPLflYF0Kcn8BpBPSHpBxHtL3jHxE2ArGgW4zw3KPuqT1ORDubmr8z4jFkz6m38Vnlg LkpXouVcBxVNyRFo8l+PIn54BXnjgic91MioeZbCH0SDUtbBOFUk7sFNPk4dztlaWzd1 0fvNtm/nX+Tlj838ZT9Sezs1ewOf+/t/7qIIhts31T/3wl/SOXcA3pO9dg59hUtTKYCS OsHjunevGGNiKOzp094LQJn4QLZpx6ztc28xeh+VdnMBcSbR8bB6g9UknIDlSmGDgNJk H6HA== X-Gm-Message-State: AOJu0Yzjr02H/HXxnNlPMw7m4edzpJDXjaIAuXHNnWka/ySvvJTUlHgi htDjoD8e6jvLbPAXfrkX9WPV4JW4EId3iTRbxWs= X-Google-Smtp-Source: AGHT+IF4jqr31qYNkqMvyhJ3hos3XWOJJtkl+bDaxbvII8F7SwSdIH9MrBfWf8ODDW+vFH0ZX/jyhg== X-Received: by 2002:a05:6808:18a3:b0:3a6:febf:fb with SMTP id bi35-20020a05680818a300b003a6febf00fbmr4682069oib.22.1692381459383; Fri, 18 Aug 2023 10:57:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: imp@bsdimp.com Subject: [PATCH 2/3] bsd-user: Remove image_info.mmap Date: Fri, 18 Aug 2023 10:57:35 -0700 Message-Id: <20230818175736.144194-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818175736.144194-1-richard.henderson@linaro.org> References: <20230818175736.144194-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::236; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1692381513002100001 Content-Type: text/plain; charset="utf-8" This value is unused. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- bsd-user/qemu.h | 1 - bsd-user/elfload.c | 1 - 2 files changed, 2 deletions(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 178114b423..898fe3e8b3 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -52,7 +52,6 @@ struct image_info { abi_ulong end_data; abi_ulong start_brk; abi_ulong brk; - abi_ulong mmap; abi_ulong rss; abi_ulong start_stack; abi_ulong entry; diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 38a3439d2c..2d39e59258 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -738,7 +738,6 @@ int load_elf_binary(struct bsd_binprm *bprm, struct tar= get_pt_regs *regs, /* OK, This is the point of no return */ info->end_data =3D 0; info->end_code =3D 0; - info->mmap =3D 0; elf_entry =3D (abi_ulong) elf_ex.e_entry; =20 /* XXX Join this with PT_INTERP search? */ --=20 2.34.1 From nobody Mon Feb 9 14:26:23 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1692381512; cv=none; d=zohomail.com; s=zohoarc; b=OvxLUBVbP8AsM+QhYdC7Kul5GMrCuMSJctZ8suQTnHtE06EXx95VVEshe6NAJK6uCOxdnPhETpZnfBgcvRiTWqmEExq28+ThUVPXFErWvN/uk9nLoV3/+FsAy0Jh6HhWqhbWdi4OfqhyHvhWSK9Q/N6otSDKIdacdThaVJWrsK4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692381512; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=mKC3oMtQdbEDSSpIBKgTNpz/jo9TrgS3VCqCg+QxX8s=; b=SQ8eubvilSHE6lV3C5Ym7ewE7oSNapTTKr44+Y96Zz+JUsYt/6vsqnUR3nVwMZsKuD9bn/M9glyRuMHp2ciTmJJaIDyCcw1wP2olVfpUoC3k8rLlNZS5FkQOwYUact2YANW+/EhoNyccNLm9D1/4/lStBUOb3B6K2cvqTOUbMV4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1692381511985958.2326904529991; Fri, 18 Aug 2023 10:58:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX3jF-00011i-Gr; Fri, 18 Aug 2023 13:57:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qX3jD-00010Z-RH for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:57:43 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX3jB-0004A0-Kj for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:57:43 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-688779ffcfdso1026003b3a.1 for ; Fri, 18 Aug 2023 10:57:41 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:cf24:6daf:2b9e:7972]) by smtp.gmail.com with ESMTPSA id q11-20020a638c4b000000b005637030d00csm1838212pgn.30.2023.08.18.10.57.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Aug 2023 10:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692381460; x=1692986260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mKC3oMtQdbEDSSpIBKgTNpz/jo9TrgS3VCqCg+QxX8s=; b=eFwCqPq++9ffa6d4Dg3GFby4Y+Cy1mV1bndnrdoswjbMXllXOuwQJhJCYm4snSKHuc 1V+n/sYY68yG8R6xsOt7EOeeZBLXzxfmKAara6rk03aIpAIfYLofUKPsqu0tRfKnZouE tLGdQZ59vGIju5IoEbAauQYIndIldz65lQP+Q97A/FNUciA+DUoZxt/FcSwFWupUkMWo aXLe0GnGyBjdSTGymKAx65N7h6HZZTb2SWPKFt8AprGmdDmnNSmvuJH/7i+mI3gWDDCb 22lpL8Ap5lJgl6+irRSGkUqUTqDbOMzWvti/+aGlUMx4pfbdQmJZEZQ42ZUUJse3nr3Y 7phQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692381460; x=1692986260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mKC3oMtQdbEDSSpIBKgTNpz/jo9TrgS3VCqCg+QxX8s=; b=fu3HCMuE1NQ/9Yfxe4DaUtKYvjwmA+eQhF64JzF5Zif2OlpbAT5I4pP2BK4l2gSlDx L0XEXkjdlP88wEZfW0f47j6TeQX5gxC5xCeszPtLASZKnUbf4eZTH4htxPnbeQItwVBd Uv+Gc+HioMOLJ9pNQpFEfePMAIiu18jA2LZZ5FyJJKMQxCe/kw19HelMPkkrOY5EXno1 ZoJ18b7IlbEaZnBdGpVFjXNhvFIMD1QRvLAgO/TgOQQBE1VvYM7Qt+4s9P5mytRANaTo T0d0Ka0BsIuHmClxyxV8D8j/cMI0EAGMA++D6Of5b38p8s5E6NKTH6wgWTnKO+GAO4xQ EOzQ== X-Gm-Message-State: AOJu0YwACcYAwkmO74j51BJtDEdu+g5IAD0RiGdSILB7rR85OI365V31 a5bRvRQGaq/ExG4OPjj8O/TokDQGFAJl9qxNJP8= X-Google-Smtp-Source: AGHT+IE2U58mD8DxnJeg8hcocQzjRiAS/RJCG2e7Mx0nvhFedpM4h09okaeGurbNnwhJPpsKxBvDYg== X-Received: by 2002:a05:6a20:9146:b0:140:56b6:4137 with SMTP id x6-20020a056a20914600b0014056b64137mr4017369pzc.52.1692381460386; Fri, 18 Aug 2023 10:57:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: imp@bsdimp.com Subject: [PATCH 3/3] bsd-user: Remove image_info.start_brk Date: Fri, 18 Aug 2023 10:57:36 -0700 Message-Id: <20230818175736.144194-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818175736.144194-1-richard.henderson@linaro.org> References: <20230818175736.144194-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1692381513031100002 Content-Type: text/plain; charset="utf-8" This has the same value is image_info.brk, which is also logged, and is otherwise unused. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- bsd-user/qemu.h | 1 - bsd-user/elfload.c | 2 +- bsd-user/main.c | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 898fe3e8b3..61501c321b 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; diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 2d39e59258..baf2f63d2f 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -811,7 +811,7 @@ int load_elf_binary(struct bsd_binprm *bprm, struct tar= get_pt_regs *regs, bprm->stringp, &elf_ex, load_addr, et_dyn_addr, interp_load_addr, info= ); info->load_addr =3D reloc_func_desc; - info->start_brk =3D info->brk =3D elf_brk; + info->brk =3D elf_brk; info->start_stack =3D bprm->p; info->load_bias =3D 0; =20 diff --git a/bsd-user/main.c b/bsd-user/main.c index 381bb18df8..f913cb55a7 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); =20 - 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", --=20 2.34.1