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 Get libelf building in the toolchai...



details:   https://anonhg.NetBSD.org/src/rev/9733e0a132c4
branches:  trunk
changeset: 752300:9733e0a132c4
user:      darran <darran%NetBSD.org@localhost>
date:      Mon Feb 22 10:48:32 2010 +0000

description:
Get libelf building in the toolchain again.

diffstat:

 external/bsd/libelf/dist/elf_begin.c       |  9 ++++++++-
 external/bsd/libelf/dist/elf_data.c        |  6 +++++-
 external/bsd/libelf/dist/elf_end.c         |  6 +++++-
 external/bsd/libelf/dist/elf_getident.c    |  6 +++++-
 external/bsd/libelf/dist/elf_next.c        |  6 +++++-
 external/bsd/libelf/dist/elf_scn.c         |  6 +++++-
 external/bsd/libelf/dist/elf_strptr.c      |  6 +++++-
 external/bsd/libelf/dist/elf_update.c      |  6 +++++-
 external/bsd/libelf/dist/gelf_cap.c        |  6 +++++-
 external/bsd/libelf/dist/gelf_dyn.c        |  6 +++++-
 external/bsd/libelf/dist/gelf_ehdr.c       |  6 +++++-
 external/bsd/libelf/dist/gelf_move.c       |  6 +++++-
 external/bsd/libelf/dist/gelf_rel.c        |  6 +++++-
 external/bsd/libelf/dist/gelf_rela.c       |  6 +++++-
 external/bsd/libelf/dist/gelf_shdr.c       |  6 +++++-
 external/bsd/libelf/dist/gelf_sym.c        |  6 +++++-
 external/bsd/libelf/dist/gelf_syminfo.c    |  6 +++++-
 external/bsd/libelf/dist/gelf_symshndx.c   |  6 +++++-
 external/bsd/libelf/dist/libelf.c          |  6 +++++-
 external/bsd/libelf/dist/libelf.h          |  6 +++++-
 external/bsd/libelf/dist/libelf_align.c    |  6 +++++-
 external/bsd/libelf/dist/libelf_allocate.c |  6 +++++-
 external/bsd/libelf/dist/libelf_ar.c       |  6 +++++-
 external/bsd/libelf/dist/libelf_checksum.c |  6 +++++-
 external/bsd/libelf/dist/libelf_convert.m4 |  6 +++++-
 external/bsd/libelf/dist/libelf_data.c     |  6 +++++-
 external/bsd/libelf/dist/libelf_ehdr.c     |  6 +++++-
 external/bsd/libelf/dist/libelf_extended.c |  6 +++++-
 external/bsd/libelf/dist/libelf_msize.m4   |  6 +++++-
 external/bsd/libelf/dist/libelf_phdr.c     |  6 +++++-
 external/bsd/libelf/dist/libelf_shdr.c     |  6 +++++-
 external/bsd/libelf/dist/libelf_xlate.c    |  6 +++++-
 32 files changed, 163 insertions(+), 32 deletions(-)

diffs (truncated from 650 to 300 lines):

diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_begin.c
--- a/external/bsd/libelf/dist/elf_begin.c      Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_begin.c      Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_begin.c,v 1.4 2009/12/29 17:05:58 thorpej Exp $    */
+/*     $NetBSD: elf_begin.c,v 1.5 2010/02/22 10:48:32 darran Exp $     */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_begin.c,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
@@ -35,6 +39,9 @@
 
 #include <ar.h>
 #include <ctype.h>
+#include <db.h>
+#include <err.h>
+#include <err.h>
 #include <errno.h>
 #include <libelf.h>
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_data.c
--- a/external/bsd/libelf/dist/elf_data.c       Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_data.c       Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_data.c,v 1.4 2010/01/28 21:38:29 darran Exp $      */
+/*     $NetBSD: elf_data.c,v 1.5 2010/02/22 10:48:32 darran Exp $      */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_data.c,v 1.2.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_end.c
--- a/external/bsd/libelf/dist/elf_end.c        Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_end.c        Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_end.c,v 1.1.1.2 2009/12/29 16:58:08 thorpej Exp $  */
+/*     $NetBSD: elf_end.c,v 1.2 2010/02/22 10:48:32 darran Exp $       */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_end.c,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_getident.c
--- a/external/bsd/libelf/dist/elf_getident.c   Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_getident.c   Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_getident.c,v 1.1.1.2 2009/12/29 16:58:08 thorpej Exp $     */
+/*     $NetBSD: elf_getident.c,v 1.2 2010/02/22 10:48:32 darran Exp $  */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_getident.c,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_next.c
--- a/external/bsd/libelf/dist/elf_next.c       Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_next.c       Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_next.c,v 1.1.1.2 2009/12/29 16:58:08 thorpej Exp $ */
+/*     $NetBSD: elf_next.c,v 1.2 2010/02/22 10:48:32 darran Exp $      */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_next.c,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_scn.c
--- a/external/bsd/libelf/dist/elf_scn.c        Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_scn.c        Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_scn.c,v 1.5 2009/12/29 17:05:58 thorpej Exp $      */
+/*     $NetBSD: elf_scn.c,v 1.6 2010/02/22 10:48:32 darran Exp $       */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_scn.c,v 1.2.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_strptr.c
--- a/external/bsd/libelf/dist/elf_strptr.c     Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_strptr.c     Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_strptr.c,v 1.1.1.2 2009/12/29 16:58:08 thorpej Exp $       */
+/*     $NetBSD: elf_strptr.c,v 1.2 2010/02/22 10:48:32 darran Exp $    */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_strptr.c,v 1.2.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/elf_update.c
--- a/external/bsd/libelf/dist/elf_update.c     Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/elf_update.c     Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_update.c,v 1.3 2009/12/29 17:05:58 thorpej Exp $   */
+/*     $NetBSD: elf_update.c,v 1.4 2010/02/22 10:48:32 darran Exp $    */
 
 /*-
  * Copyright (c) 2006-2008 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_update.c,v 1.5.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/gelf_cap.c
--- a/external/bsd/libelf/dist/gelf_cap.c       Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/gelf_cap.c       Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gelf_cap.c,v 1.4 2009/12/29 17:05:58 thorpej Exp $     */
+/*     $NetBSD: gelf_cap.c,v 1.5 2010/02/22 10:48:32 darran Exp $      */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/gelf_cap.c,v 1.2.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/gelf_dyn.c
--- a/external/bsd/libelf/dist/gelf_dyn.c       Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/gelf_dyn.c       Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gelf_dyn.c,v 1.3 2009/12/29 17:05:58 thorpej Exp $     */
+/*     $NetBSD: gelf_dyn.c,v 1.4 2010/02/22 10:48:32 darran Exp $      */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/gelf_dyn.c,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/gelf_ehdr.c
--- a/external/bsd/libelf/dist/gelf_ehdr.c      Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/gelf_ehdr.c      Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gelf_ehdr.c,v 1.3 2009/12/29 17:05:58 thorpej Exp $    */
+/*     $NetBSD: gelf_ehdr.c,v 1.4 2010/02/22 10:48:32 darran Exp $     */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/gelf_ehdr.c,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/gelf_move.c
--- a/external/bsd/libelf/dist/gelf_move.c      Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/gelf_move.c      Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gelf_move.c,v 1.4 2009/12/29 17:05:58 thorpej Exp $    */
+/*     $NetBSD: gelf_move.c,v 1.5 2010/02/22 10:48:32 darran Exp $     */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/gelf_move.c,v 1.2.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/gelf_rel.c
--- a/external/bsd/libelf/dist/gelf_rel.c       Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/gelf_rel.c       Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gelf_rel.c,v 1.3 2009/12/29 17:05:58 thorpej Exp $     */
+/*     $NetBSD: gelf_rel.c,v 1.4 2010/02/22 10:48:32 darran Exp $      */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/gelf_rel.c,v 1.2.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/gelf_rela.c
--- a/external/bsd/libelf/dist/gelf_rela.c      Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/gelf_rela.c      Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gelf_rela.c,v 1.3 2009/12/29 17:05:58 thorpej Exp $    */
+/*     $NetBSD: gelf_rela.c,v 1.4 2010/02/22 10:48:32 darran Exp $     */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@
  * SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/gelf_rela.c,v 1.2.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
 
diff -r f1e472aa982f -r 9733e0a132c4 external/bsd/libelf/dist/gelf_shdr.c
--- a/external/bsd/libelf/dist/gelf_shdr.c      Mon Feb 22 09:51:11 2010 +0000
+++ b/external/bsd/libelf/dist/gelf_shdr.c      Mon Feb 22 10:48:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gelf_shdr.c,v 1.3 2009/12/29 17:05:58 thorpej Exp $    */
+/*     $NetBSD: gelf_shdr.c,v 1.4 2010/02/22 10:48:32 darran Exp $     */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -26,6 +26,10 @@



Home | Main Index | Thread Index | Old Index