git: 9d2612fc2a7e - main - imgact_elf: Move GNU_ABI_VENDOR to a common header

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Fri, 10 Nov 2023 10:06:56 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=9d2612fc2a7e54719058c68b62ea035b029c954f

commit 9d2612fc2a7e54719058c68b62ea035b029c954f
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-11-01 15:05:58 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-11-10 09:57:45 +0000

    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
---
 sys/kern/imgact_elf.c | 1 -
 sys/sys/imgact_elf.h  | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

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 *);