From nobody Sat Nov 15 08:36:57 2025 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=1753836307; cv=none; d=zohomail.com; s=zohoarc; b=jMR/ZUtDazhM2X31Lxc4wgXhqeosN7BndeulTNIuLL54SdHPQGBKwB5lo9BmOb3TXXg/Paq7gUEZa+iiEEG/S/ReT5bP7SNgzniae7bwBPhVp5n0yQ8bJZlZE6+AwJL8AcD6INnyVWuMGCMvxiFIckxzgLUEmqLXPRnUFySGrHM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753836307; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=P8lPJjGll0So1byMy/+oBlKdiKlOqDRJHguxp9paJTQ=; b=TTzalBVC+c55PISKcnS9OQ6xnQRzRsq3VOfHY2ofNMk8n8DqFOAdRHjOfkd+UydUAGgpFGWjHTjgurYLpdIOwnq7yR8s0bqgkpSweLTo4kE7HBMna34AtnX7jUQKWB2kAINCm584bNgDezx29bnl7jjoaBLcxqkiuwqBjFfaLwM= 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 1753836307476353.02052369079297; Tue, 29 Jul 2025 17:45:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ugueV-0003MB-Tm; Tue, 29 Jul 2025 20:26:40 -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 1uguJO-0004vg-DU for qemu-devel@nongnu.org; Tue, 29 Jul 2025 20:04:50 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uguJL-0004hJ-P7 for qemu-devel@nongnu.org; Tue, 29 Jul 2025 20:04:49 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-769a9c3bbc4so1412347b3a.3 for ; Tue, 29 Jul 2025 17:04:47 -0700 (PDT) Received: from localhost.localdomain (syn-098-150-199-049.res.spectrum.com. [98.150.199.49]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7640ad06762sm9101302b3a.80.2025.07.29.17.04.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jul 2025 17:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753833886; x=1754438686; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=P8lPJjGll0So1byMy/+oBlKdiKlOqDRJHguxp9paJTQ=; b=kzosJjLhSEh/vNIC629JJ3+61kmFvE++X3S1YHvpELyewDanNguCxtdUbgJ9DwmZ+B UQSqapwSChm5qFOroB7/8AAqbSEiEfShx+N/7WFUVLbErHGEBJ5Zqgj01aAgPYBGeF+N PlVoQcWXNcudmTVNx4qzd+S4cNSz8MuuC+5fzRSuXgaaE4ruYYwnLdlu3+bez4WuITtl 70ooYAeKE0jL+gxydY7DInqCgCBGuAi1jqSvTXIo7+R60C/vPPUNS4uTAQZGDvQsGcb4 cHZ1bclIiwScuIjkU5s0jnrEZkjit3wfdhy3U4HpPmU26K1xuFmamTd6S8UOOC/5SHI5 DoZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753833886; x=1754438686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P8lPJjGll0So1byMy/+oBlKdiKlOqDRJHguxp9paJTQ=; b=LhJkqMij1fjv6saSL7Q2cuekBnS6T8TX8w9XeGgHn8uFXgJ3jPJu7uwGsJ9ZcfyBkU BQrLm31cJuncUfHZpB8aarJQI3T9TrYgJ75JHaQ9oo789at06xW9YwiHmgzdonQDdFq5 v3NJKvNOgIt5jfo/DHxgR93JSEyFnwjAjQ/7lpkXIUNh9YJnvTWz5gkb+MUSQi8/BAEJ InOJvxCcHrnR8Put8am0fWzJV1Tsy74RdQS9hgRkqUO2n9IWzQ6MuUGdsZv7QQ7bMnPQ Bb2MDCZ5hk8tJQoKIWkdWJGwOVe5f1I1uxnCyJEUDn3YzFe3xApek20kG8fnAAq7B63Z Qrkw== X-Gm-Message-State: AOJu0YwVbJWzaADAbfmXvd7XG8wtaEcYj0v/+eKqFb6TWym4QvLCJzPG 3zH1OqASg2xsiaxyVX7DDvFhz2ZHwuvvrSRmWPAAwSAUnTufrNEgTvDSmNCcvo/ioukrlueesAY Ynbi3 X-Gm-Gg: ASbGnctnkeSR0Wgq3WxIxn+kw8K2MHc1LxKfNNEUsNZo8GGvTVtOuDe4+rcPWUYjU5m WVvr3ljTJxqslZlCCLzMWBPojV0T+BHSJc+2t8avf+6uxJYn4zQ07tk62b22IwIGhJqHrHG5z6c 6uFd2R1nmlMQQffSvFlVRqVGycDbVfv18He/SkgWi3t7difV947ZfD3ctCBxL7c9yaawWMUM+mr kE2sXEHoEgpUfIsjg27gA8j7CncgGicZLqvRaS4GGACYSWOM6asFHrMTTcvrXjo4JsDk1M+a7en fDcLzOKtaa+uVlRHse865KJ+K/6DbGOy9w7R5Z/7OOTTAGpPdhEfX3qYjgRCJ0Gj6EUyu17WhdR YwQoeNwNxvMxFBXZTbTttQmo9ujfQvGQZIVRs46A/jy6PkFhz3h+pnZdPxbMnYHO/Deq4VU+R+r DfQpMfY2EJ2w== X-Google-Smtp-Source: AGHT+IHI9/RTY2PxpTjJmAZ3AjCwNNr3N2KSX+xCeyT8mvBAldvmiVz5u7u32XBCD7zjP2CCayGyog== X-Received: by 2002:a05:6a00:3d12:b0:736:4d05:2e2e with SMTP id d2e1a72fcca58-76ab1021712mr1866683b3a.6.1753833886409; Tue, 29 Jul 2025 17:04:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 70/89] linux-user: Move elf parameters to openrisc/target_elf.h Date: Tue, 29 Jul 2025 13:59:43 -1000 Message-ID: <20250730000003.599084-71-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250730000003.599084-1-richard.henderson@linaro.org> References: <20250730000003.599084-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::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.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: 1753836309039116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- linux-user/openrisc/target_elf.h | 4 ++++ linux-user/elfload.c | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/linux-user/openrisc/target_elf.h b/linux-user/openrisc/target_= elf.h index b34f2ff672..0a2b3ef762 100644 --- a/linux-user/openrisc/target_elf.h +++ b/linux-user/openrisc/target_elf.h @@ -8,4 +8,8 @@ #ifndef OPENRISC_TARGET_ELF_H #define OPENRISC_TARGET_ELF_H =20 +#define ELF_ARCH EM_OPENRISC +#define ELF_CLASS ELFCLASS32 +#define USE_ELF_CORE_DUMP + #endif diff --git a/linux-user/elfload.c b/linux-user/elfload.c index aa05abec05..a45d23b91d 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -138,16 +138,6 @@ typedef abi_uint target_gid_t; #endif typedef abi_int target_pid_t; =20 -#ifdef TARGET_OPENRISC - -#define ELF_ARCH EM_OPENRISC -#define ELF_CLASS ELFCLASS32 -#define ELF_DATA ELFDATA2MSB - -#define USE_ELF_CORE_DUMP - -#endif /* TARGET_OPENRISC */ - #ifdef TARGET_SH4 =20 #define ELF_CLASS ELFCLASS32 --=20 2.43.0