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
This commit is contained in:
parent
24ae305fb7
commit
4c22b4686b
@ -148,7 +148,7 @@ static const char FREEBSD_ABI_VENDOR[] = "FreeBSD";
|
|||||||
Elf_Brandnote __elfN(freebsd_brandnote) = {
|
Elf_Brandnote __elfN(freebsd_brandnote) = {
|
||||||
.hdr.n_namesz = sizeof(FREEBSD_ABI_VENDOR),
|
.hdr.n_namesz = sizeof(FREEBSD_ABI_VENDOR),
|
||||||
.hdr.n_descsz = sizeof(int32_t),
|
.hdr.n_descsz = sizeof(int32_t),
|
||||||
.hdr.n_type = 1,
|
.hdr.n_type = NT_FREEBSD_ABI_TAG,
|
||||||
.vendor = FREEBSD_ABI_VENDOR,
|
.vendor = FREEBSD_ABI_VENDOR,
|
||||||
.flags = BN_TRANSLATE_OSREL,
|
.flags = BN_TRANSLATE_OSREL,
|
||||||
.trans_osrel = __elfN(freebsd_trans_osrel)
|
.trans_osrel = __elfN(freebsd_trans_osrel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user