Module Name: src Committed By: christos Date: Thu Jan 2 19:20:35 UTC 2014
Modified Files: src/external/bsd/libelf/dist: libelf.h libelf_data.c Log Message: add gnu attributes to the known sections To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/bsd/libelf/dist/libelf.h cvs rdiff -u -r1.5 -r1.6 src/external/bsd/libelf/dist/libelf_data.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/libelf/dist/libelf.h diff -u src/external/bsd/libelf/dist/libelf.h:1.7 src/external/bsd/libelf/dist/libelf.h:1.8 --- src/external/bsd/libelf/dist/libelf.h:1.7 Mon Feb 22 05:48:32 2010 +++ src/external/bsd/libelf/dist/libelf.h Thu Jan 2 14:20:35 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: libelf.h,v 1.7 2010/02/22 10:48:32 darran Exp $ */ +/* $NetBSD: libelf.h,v 1.8 2014/01/02 19:20:35 christos Exp $ */ /*- * Copyright (c) 2006 Joseph Koshy @@ -54,6 +54,7 @@ # define __LIBELF_HAVE_ELF_NOTE 1 # define __LIBELF_HAVE_ELF_SYMINFO 1 # define __LIBELF_HAVE_ELF_VERS 1 +# define __LIBELF_HAVE_ELF_ATTRIBUTES 1 #elif defined(__FreeBSD__) # include <sys/elf32.h> # include <sys/elf64.h> Index: src/external/bsd/libelf/dist/libelf_data.c diff -u src/external/bsd/libelf/dist/libelf_data.c:1.5 src/external/bsd/libelf/dist/libelf_data.c:1.6 --- src/external/bsd/libelf/dist/libelf_data.c:1.5 Thu Jun 20 21:36:31 2013 +++ src/external/bsd/libelf/dist/libelf_data.c Thu Jan 2 14:20:35 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: libelf_data.c,v 1.5 2013/06/21 01:36:31 christos Exp $ */ +/* $NetBSD: libelf_data.c,v 1.6 2014/01/02 19:20:35 christos Exp $ */ /*- * Copyright (c) 2006 Joseph Koshy @@ -87,6 +87,10 @@ _libelf_xlate_shtype(uint32_t sht) case SHT_SUNW_syminfo: return (ELF_T_SYMINFO); #endif /* __LIBELF_HAVE_ELF_SYMINFO */ +#if defined(__LIBELF_HAVE_ELF_ATTRIBUTES) + case SHT_GNU_ATTRIBUTES: + return (ELF_T_BYTE); /* XXX */ +#endif /* __LIBELF_HAVE_ELF_ATTRIBUTES */ default: if (sht >= SHT_LOPROC && sht <= SHT_HIPROC) return (ELF_T_BYTE);