From nobody Mon Nov 25 02:39:23 2024 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1718650762; cv=none; d=zohomail.com; s=zohoarc; b=UkHkuEfQu3NeJsSsBKS5xMdEdBcjW7TIl9eqEzkrgwJvuKPy4uwbaTANz0bW6XwjYIviM2JiFFrluWngbOs3/LgV/M0vT+x/IUsovGuWRWH2zqNvKf1jXFuqOzQJGKt2p1776SmODDSfPZMuIwIfiVsQFX89YhYerI9pr/9ofpU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1718650762; h=Content-Transfer-Encoding:Cc:Cc: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; bh=KXCAWBNkEFL7RtMWqPmqBDwDa9EwuUs2bp+eoNQh6Bc=; b=LzmtwChgmLakNBQZmBwcQKtCSRTNVAR60tEQcBKyTIkIxOFK02Nbwf5Qlqg0NXKNhBnx9BonNvxcr/X8NfYh+4lS9V6YG/185ejOgLjyiBo7tus6rr52p9JWA1ibp8cwfHYMhWX1Q5Sgzq3X5+n0b5lmUYyt/GMEElCsoiSCsD8= 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 1718650762818530.1163693863593; Mon, 17 Jun 2024 11:59:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJHZF-0005v4-3l; Mon, 17 Jun 2024 14:59:01 -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 1sJHZ7-0005EM-Tu for qemu-devel@nongnu.org; Mon, 17 Jun 2024 14:58:53 -0400 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJHZ4-000519-My for qemu-devel@nongnu.org; Mon, 17 Jun 2024 14:58:53 -0400 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5ba33b08550so2187045eaf.2 for ; Mon, 17 Jun 2024 11:58:49 -0700 (PDT) Received: from localhost.localdomain ([106.222.222.115]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb4aa4fsm7660637b3a.131.2024.06.17.11.58.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 11:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718650729; x=1719255529; darn=nongnu.org; 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=KXCAWBNkEFL7RtMWqPmqBDwDa9EwuUs2bp+eoNQh6Bc=; b=EAhUfXnRT15utVQeZavQjJzStymB9ZeIxuMIOTE34/Thz0/dxS9BjY5/DABxO9SI3Y i2eY7Y2HHoKa20lznccn5spjmFOO8F0NDAifDirwIjCK7qJ/UEd1CdMqUAs4wiKRL7/v uY/L11fwdHx835s7DLaPFbAKTB5VoZEw/kmhwoMHpzfkmxHCma7Ie+52bQI4Avvk5N8Q +r8dCQmU2Do92lGsYwJkcBQJLdY7gjcePJykYZm52/vCOaO+Uqeiyds8S3tIUTT4UZzx pCXQ0wc2oxGlesul5C1b1sHZXUUYY3xum1cC7viJxTSOUBXwDC4vtz9cpUwW44lwb+0x bedw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718650729; x=1719255529; 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=KXCAWBNkEFL7RtMWqPmqBDwDa9EwuUs2bp+eoNQh6Bc=; b=gX9oXG/vuC1+zRfXDAMIuotugxAFZXIJcE76hNqR10SQobSZhx3KH455ntmo7EIKod OUbUxHQAKlZ0tdN81ueUHGIKrF6Xo8t/vTHXcZXikYOIsDRPmWtp2rhbxTqczd0QSiaE uxboI4N27BFhr4Z5FLrsN33InGG5P/Z6Ek+tX0GbSlYT+KVfXdWQnIWihT/zVDfFx4LO IGDH3vfI0hLV2wUq9I991SIADXHmvT7Aap4Pixc6C/Ltz3YM3AZivtSBjvmkZc/xPyeO ULyuoGjxeGF1K46IwsGtsCNUgwauyDxywNiFdJexVKMVSVir83ze6ZVwDF0j+wYilciF e84A== X-Gm-Message-State: AOJu0YyA7yu2+RN1MUhTZwTK7jq2S63o+mg7rn6oLmJj1p7XIYCRbiBq beqJzBRMIT5toIhG4lQWaZ4juIuxUIOb+rwgFHVAcoQp3KHDwaDOoCib05h8m2Q= X-Google-Smtp-Source: AGHT+IHocEAvQVGqvIPHrRScbgVTQEHVre3JJn9syRoleAFMoZNti/IJZodQYbrYZd+hjpaqvMcRsQ== X-Received: by 2002:a05:6870:a18a:b0:24c:ae57:b4ab with SMTP id 586e51a60fabf-25842893a0fmr11304216fac.11.1718650728678; Mon, 17 Jun 2024 11:58:48 -0700 (PDT) From: Ajeet Singh X-Google-Original-From: Ajeet Singh To: qemu-devel@nongnu.org Cc: Warner Losh , Ajeet Singh , Stacey Son , Ajeet Singh , Kyle Evans Subject: [PATCH 13/23] Add ARM AArch64 ELF definitions for bsd-user Date: Tue, 18 Jun 2024 00:27:54 +0530 Message-Id: <20240617185804.25075-14-itachis@FreeBSD.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617185804.25075-1-itachis@FreeBSD.org> References: <20240617185804.25075-1-itachis@FreeBSD.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::c31; envelope-from=itachis6234@gmail.com; helo=mail-oo1-xc31.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1718650764131100001 Content-Type: text/plain; charset="utf-8" From: Stacey Son Defined mmap and dynamic load adresses and set various elf parameters Signed-off-by: Stacey Son Signed-off-by: Ajeet Singh Co-authored-by: Kyle Evans Reviewed-by: Richard Henderson --- bsd-user/aarch64/target_arch_elf.h | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 bsd-user/aarch64/target_arch_elf.h diff --git a/bsd-user/aarch64/target_arch_elf.h b/bsd-user/aarch64/target_a= rch_elf.h new file mode 100644 index 0000000000..6d0fa3525f --- /dev/null +++ b/bsd-user/aarch64/target_arch_elf.h @@ -0,0 +1,37 @@ +/* + * ARM AArch64 ELF definitions for bsd-user + * + * Copyright (c) 2015 Stacey D. Son + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#ifndef TARGET_ARCH_ELF_H +#define TARGET_ARCH_ELF_H + +#include "target/arm/cpu-features.h" + +#define ELF_START_MMAP 0x80000000 +#define ELF_ET_DYN_LOAD_ADDR 0x100000 + +#define elf_check_arch(x) ((x) =3D=3D EM_AARCH64) + +#define ELF_CLASS ELFCLASS64 +#define ELF_DATA ELFDATA2LSB +#define ELF_ARCH EM_AARCH64 + +#define USE_ELF_CORE_DUMP +#define ELF_EXEC_PAGESIZE 4096 + +#endif /* TARGET_ARCH_ELF_H */ --=20 2.34.1