From patchwork Fri Aug 18 17:57:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 714686 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp648394wrs; Fri, 18 Aug 2023 10:58:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/yYCh+4jNnNYo7K2XsugFBur9NvQCbH+7gjOLYlf9fmaSB4EbsmWDsEetQxsaLGimAHir X-Received: by 2002:a05:620a:25c9:b0:767:3cfc:32aa with SMTP id y9-20020a05620a25c900b007673cfc32aamr4396472qko.21.1692381532629; Fri, 18 Aug 2023 10:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692381532; cv=none; d=google.com; s=arc-20160816; b=04L/wFfRKlAGKrjRGXYiA3oQZOrv1skMP2RhzWideCsGySAVra/fAC8B49Zwoid5G1 HJe0ed90Sb4oLf3hCZjlaMPre/uyqmsR/KEltA9UAWcjCIBlXImOIHTfa2geu+xc2jUr 8zI+dwz03uc8iTy1ad6KVMT8Z2UgbJthBcd7Vo4Ou2xc+56ginQi87x47JCLECO4kwOK ZhWhIXCVs2jun0K0LdX2bZLujgPdCKeRawi2wtmgIdNYIUp8vZQMxGg/cUy0aXpHEeml f8UTWs6myfWKsZLou2+a55cTKarkhKwGlDBGcjZ2nNiiuAogmQENIKPldlPl2MD8c90y N9WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=249sRNpBkee3vxDmEKQSDMH45KuQ5/RjIJ294wQlUMs=; fh=IDR3SL6lwvblHJPJmbQ3/YzQ4jmMC8ZC3/QokybUV7g=; b=p/TCZn3ybaDPKw6WC1+3X7qFkiy6oAToefQ+zvd+S3DNnW256WxPd0wC5kyaE5Bxn/ oOJwPHtFfRh7DAHygqirT8KMT80yc+9f4r+wLE3UFBfKFjAWXt2SbonGgUeDU86CKEj3 9j7bzIAB9d6mCNXdYGsbuwJk8Q7bz/Fsly5ZkIzAcqf2xIMlC/BDH1n0hQjmLrVhpAXQ BS4Ym8DoHa4i3D4DxpHUyz1BK8oqYnUy47a9O5LvYKBPg1xvgaQUbeEDzmHA6fslVjjl URyiCpjV2m90QhvP3puccu4GqGm+EqQ/ln3TH+cuO8kUdB34U7orG2qtu7wLxcp5j4NT fO+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HqLOi77x; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m20-20020a05620a291400b0076d7179e045si1625325qkp.46.2023.08.18.10.58.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Aug 2023 10:58:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HqLOi77x; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) 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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The start_mmap value is write-only. Remove the field and the defines that populated it. Signed-off-by: Richard Henderson Reviewed-by: Warner Losh --- 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 -#define ELF_START_MMAP 0x80000000 #define ELF_ET_DYN_LOAD_ADDR 0x500000 #define elf_check_arch(x) ((x) == EM_ARM) diff --git a/bsd-user/i386/target_arch_elf.h b/bsd-user/i386/target_arch_elf.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 -#define ELF_START_MMAP 0x80000000 #define ELF_ET_DYN_LOAD_ADDR 0x01001000 #define elf_check_arch(x) (((x) == EM_386) || ((x) == EM_486)) 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_arch_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 -#define ELF_START_MMAP 0x2aaaaab000ULL #define ELF_ET_DYN_LOAD_ADDR 0x01021000 #define elf_check_arch(x) (((x) == ELF_ARCH)) 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 target_pt_regs *regs, /* OK, This is the point of no return */ info->end_data = 0; info->end_code = 0; - info->start_mmap = (abi_ulong)ELF_START_MMAP; info->mmap = 0; elf_entry = (abi_ulong) elf_ex.e_entry;