aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2023-11-01 15:05:58 +0000
committerAndrew Turner <andrew@FreeBSD.org>2023-11-10 09:57:45 +0000
commit9d2612fc2a7e54719058c68b62ea035b029c954f (patch)
treeed121096bd6864518a046d70406c9926d042ce42
parent960b4327f49cb84f1555d147aa7e16a070e4e82b (diff)
downloadsrc-9d2612fc2a7e54719058c68b62ea035b029c954f.tar.gz
src-9d2612fc2a7e54719058c68b62ea035b029c954f.zip
imgact_elf: Move GNU_ABI_VENDOR to a common header
Move the definition of GNU_ABI_VENDOR to a common location so it can be used in multiple files. Reviewed by: emaste, kib, imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D42442
-rw-r--r--sys/kern/imgact_elf.c1
-rw-r--r--sys/sys/imgact_elf.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index dfa874e307e5..e03527f6a873 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -247,7 +247,6 @@ __elfN(freebsd_trans_osrel)(const Elf_Note *note, int32_t *osrel)
return (true);
}
-static const char GNU_ABI_VENDOR[] = "GNU";
static int GNU_KFREEBSD_ABI_DESC = 3;
Elf_Brandnote __elfN(kfreebsd_brandnote) = {
diff --git a/sys/sys/imgact_elf.h b/sys/sys/imgact_elf.h
index f3d9be027079..7210fc2187a9 100644
--- a/sys/sys/imgact_elf.h
+++ b/sys/sys/imgact_elf.h
@@ -100,6 +100,7 @@ __ElfType(Brandinfo);
#define MAX_BRANDS 8
#define FREEBSD_ABI_VENDOR "FreeBSD"
+#define GNU_ABI_VENDOR "GNU"
typedef void (*outfunc_t)(void *, struct sbuf *, size_t *);