[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for 6.2 06/49] bsd-user: merge comments and guards from bsd-user
From: |
Warner Losh |
Subject: |
[PATCH for 6.2 06/49] bsd-user: merge comments and guards from bsd-user fork |
Date: |
Sat, 7 Aug 2021 15:41:59 -0600 |
Diff reduction against bsd-user fork: bring in the copyright/license
comments, and guard ifdefs.
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/i386/target_arch_elf.h | 22 ++++++++++++++++++++++
bsd-user/x86_64/target_arch_elf.h | 23 +++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/bsd-user/i386/target_arch_elf.h b/bsd-user/i386/target_arch_elf.h
index 084c9a7814..20ef0ccbdb 100644
--- a/bsd-user/i386/target_arch_elf.h
+++ b/bsd-user/i386/target_arch_elf.h
@@ -1,3 +1,23 @@
+/*
+ * i386 ELF definitions
+ *
+ * Copyright (c) 2013 Stacey D. Son
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef _TARGET_ARCH_ELF_H_
+#define _TARGET_ARCH_ELF_H_
#define ELF_PLATFORM get_elf_platform()
@@ -52,3 +72,5 @@ static inline void init_thread(struct target_pt_regs *regs,
struct image_info *i
#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096
+
+#endif /* _TARGET_ARCH_ELF_H_ */
diff --git a/bsd-user/x86_64/target_arch_elf.h
b/bsd-user/x86_64/target_arch_elf.h
index 08a86da1a5..d3c139c7a9 100644
--- a/bsd-user/x86_64/target_arch_elf.h
+++ b/bsd-user/x86_64/target_arch_elf.h
@@ -1,3 +1,24 @@
+/*
+ * x86_64 ELF definitions
+ *
+ * Copyright (c) 2013 Stacey D. Son
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef _TARGET_ARCH_ELF_H_
+#define _TARGET_ARCH_ELF_H_
+
#define ELF_PLATFORM get_elf_platform()
static const char *get_elf_platform(void)
@@ -39,3 +60,5 @@ static inline void init_thread(struct target_pt_regs *regs,
struct image_info *i
#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096
+
+#endif /* _TARGET_ARCH_ELF_H_ */
--
2.32.0
- [PATCH for 6.2 01/49] bsd-user: remove sparc and sparc64, (continued)
- [PATCH for 6.2 01/49] bsd-user: remove sparc and sparc64, Warner Losh, 2021/08/07
- [PATCH for 6.2 03/49] bsd-user: Add Stacey's copyright to main.c, Warner Losh, 2021/08/07
- [PATCH for 6.2 04/49] bsd-user: Remove all non-x86 code from elfload.c, Warner Losh, 2021/08/07
- [PATCH for 6.2 05/49] bsd-user: move arch specific defines out of elfload.c, Warner Losh, 2021/08/07
- [PATCH for 6.2 07/49] bsd-user: style nits: apply qemu style to these files, Warner Losh, 2021/08/07
- [PATCH for 6.2 06/49] bsd-user: merge comments and guards from bsd-user fork,
Warner Losh <=
- [PATCH for 6.2 08/49] bsd-user: style nits: fix whitespace issues to be qemu standard, Warner Losh, 2021/08/07
- [PATCH for 6.2 09/49] bsd-user: add license, Warner Losh, 2021/08/07
- [PATCH for 6.2 10/49] bsd-user: pass the bsd_param into loader_exec, Warner Losh, 2021/08/07
- [PATCH for 6.2 11/49] bsd-user: Fix calculation of size to allocate, Warner Losh, 2021/08/07
- [PATCH for 6.2 12/49] bsd-user: implement path searching, Warner Losh, 2021/08/07