git: c424b194192e - stable/14 - imgact_elf: Move GNU_ABI_VENDOR to a common header

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Mon, 19 Feb 2024 16:45:18 UTC
The branch stable/14 has been updated by andrew:

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

commit c424b194192ee818662ac83e8420a9c35f046f0a
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-11-01 15:05:58 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-02-19 13:12:40 +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
    
    (cherry picked from commit 9d2612fc2a7e54719058c68b62ea035b029c954f)
---
 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 85f0602fe584..0b22e113b3d7 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -246,7 +246,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 *);