Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libelf/dist add gnu attributes to the known sec...
details: https://anonhg.NetBSD.org/src/rev/4c19bcfd58bd
branches: trunk
changeset: 325658:4c19bcfd58bd
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 02 19:20:35 2014 +0000
description:
add gnu attributes to the known sections
diffstat:
external/bsd/libelf/dist/libelf.h | 3 ++-
external/bsd/libelf/dist/libelf_data.c | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r f5b8276d26e7 -r 4c19bcfd58bd external/bsd/libelf/dist/libelf.h
--- a/external/bsd/libelf/dist/libelf.h Thu Jan 02 19:15:07 2014 +0000
+++ b/external/bsd/libelf/dist/libelf.h Thu Jan 02 19:20:35 2014 +0000
@@ -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>
diff -r f5b8276d26e7 -r 4c19bcfd58bd external/bsd/libelf/dist/libelf_data.c
--- a/external/bsd/libelf/dist/libelf_data.c Thu Jan 02 19:15:07 2014 +0000
+++ b/external/bsd/libelf/dist/libelf_data.c Thu Jan 02 19:20:35 2014 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index