[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/23] Add ARM AArch64 ELF definitions for bsd-user
From: |
Ajeet Singh |
Subject: |
[PATCH 13/23] Add ARM AArch64 ELF definitions for bsd-user |
Date: |
Tue, 18 Jun 2024 00:27:54 +0530 |
From: Stacey Son <sson@FreeBSD.org>
Defined mmap and dynamic load adresses and
set various elf parameters
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Ajeet Singh <itachis@FreeBSD.org>
Co-authored-by: Kyle Evans <kevans@FreeBSD.org>
---
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_arch_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 <http://www.gnu.org/licenses/>.
+ */
+
+#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) == 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 */
--
2.34.1
- [PATCH 06/23] Add Aarch64 register handling, (continued)
- [PATCH 06/23] Add Aarch64 register handling, Ajeet Singh, 2024/06/17
- [PATCH 07/23] Add ARM AArch64 TLS Management Prototypes for BSD-User, Ajeet Singh, 2024/06/17
- [PATCH 08/23] Add Aarch64 sysarch() system call emulation for BSD-USER, Ajeet Singh, 2024/06/17
- [PATCH 12/23] Add ability to get rval2, Ajeet Singh, 2024/06/17
- [PATCH 09/23] Add thread setup for BSD-USER, Ajeet Singh, 2024/06/17
- [PATCH 13/23] Add ARM AArch64 ELF definitions for bsd-user,
Ajeet Singh <=
- [PATCH 15/23] Add function to retrieve ARM AArch64 hardware capabilities, Ajeet Singh, 2024/06/17
- [PATCH 14/23] Add ARM AArch64 hardware capability definitions, Ajeet Singh, 2024/06/17
- [PATCH 16/23] Add function to retrieve additional ARM AArch64 hwcap, Ajeet Singh, 2024/06/17
- [PATCH 18/23] Add ARM AArch64 specific signal definitions for bsd-user, Ajeet Singh, 2024/06/17
- [PATCH 10/23] Add thread initialization for BSD-USER, Ajeet Singh, 2024/06/17