svn commit: r291951 - head/sys/kern
Ed Maste
emaste at FreeBSD.org
Mon Dec 7 18:43:29 UTC 2015
Author: emaste
Date: Mon Dec 7 18:43:27 2015
New Revision: 291951
URL: https://svnweb.freebsd.org/changeset/base/291951
Log:
Replace magic value ELF note type with NT_FREEBSD_ABI_TAG
As of r291909 elf_common.h provides a definition.
Suggested by: kib
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/kern/imgact_elf.c
Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c Mon Dec 7 18:39:38 2015 (r291950)
+++ head/sys/kern/imgact_elf.c Mon Dec 7 18:43:27 2015 (r291951)
@@ -148,7 +148,7 @@ static const char FREEBSD_ABI_VENDOR[] =
Elf_Brandnote __elfN(freebsd_brandnote) = {
.hdr.n_namesz = sizeof(FREEBSD_ABI_VENDOR),
.hdr.n_descsz = sizeof(int32_t),
- .hdr.n_type = 1,
+ .hdr.n_type = NT_FREEBSD_ABI_TAG,
.vendor = FREEBSD_ABI_VENDOR,
.flags = BN_TRANSLATE_OSREL,
.trans_osrel = __elfN(freebsd_trans_osrel)
More information about the svn-src-head
mailing list