Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src build lib{opcodes, bfd, iberty} back in gnu/lib instead of gnu...
details: https://anonhg.NetBSD.org/src/rev/a13327c249d6
branches: trunk
changeset: 555905:a13327c249d6
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Dec 04 09:29:31 2003 +0000
description:
build lib{opcodes,bfd,iberty} back in gnu/lib instead of gnu/usr.bin/binutils
as they are needed earlier than when gnu/usr.bin/binutils is built when
"make -j" is used.
diffstat:
gnu/lib/Makefile | 4 +-
gnu/lib/libbfd/Makefile | 6 +-
gnu/lib/libbfd/arch/alpha/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/alpha/bfdver.h | 6 +
gnu/lib/libbfd/arch/alpha/config.h | 16 +-
gnu/lib/libbfd/arch/alpha/defs.mk | 4 +-
gnu/lib/libbfd/arch/arm/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/arm/bfdver.h | 6 +
gnu/lib/libbfd/arch/arm/config.h | 16 +-
gnu/lib/libbfd/arch/arm/defs.mk | 4 +-
gnu/lib/libbfd/arch/armeb/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/armeb/bfdver.h | 6 +
gnu/lib/libbfd/arch/armeb/config.h | 16 +-
gnu/lib/libbfd/arch/armeb/defs.mk | 4 +-
gnu/lib/libbfd/arch/hppa/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/hppa/bfdver.h | 6 +
gnu/lib/libbfd/arch/hppa/config.h | 16 +-
gnu/lib/libbfd/arch/hppa/defs.mk | 8 +-
gnu/lib/libbfd/arch/i386/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/i386/bfdver.h | 6 +
gnu/lib/libbfd/arch/i386/config.h | 16 +-
gnu/lib/libbfd/arch/i386/defs.mk | 8 +-
gnu/lib/libbfd/arch/m68000/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/m68000/bfdver.h | 6 +
gnu/lib/libbfd/arch/m68000/config.h | 16 +-
gnu/lib/libbfd/arch/m68000/defs.mk | 4 +-
gnu/lib/libbfd/arch/m68k/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/m68k/bfdver.h | 6 +
gnu/lib/libbfd/arch/m68k/config.h | 16 +-
gnu/lib/libbfd/arch/m68k/defs.mk | 4 +-
gnu/lib/libbfd/arch/mipseb/bfd.h | 1173 ++-
gnu/lib/libbfd/arch/mipseb/bfdver.h | 6 +
gnu/lib/libbfd/arch/mipseb/config.h | 16 +-
gnu/lib/libbfd/arch/mipseb/defs.mk | 8 +-
gnu/lib/libbfd/arch/mipsel/bfd.h | 1173 ++-
gnu/lib/libbfd/arch/mipsel/bfdver.h | 6 +
gnu/lib/libbfd/arch/mipsel/config.h | 16 +-
gnu/lib/libbfd/arch/mipsel/defs.mk | 8 +-
gnu/lib/libbfd/arch/powerpc/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/powerpc/bfdver.h | 6 +
gnu/lib/libbfd/arch/powerpc/config.h | 12 +-
gnu/lib/libbfd/arch/powerpc/defs.mk | 4 +-
gnu/lib/libbfd/arch/sh3eb/bfd.h | 1173 ++-
gnu/lib/libbfd/arch/sh3eb/bfdver.h | 6 +
gnu/lib/libbfd/arch/sh3eb/config.h | 62 +-
gnu/lib/libbfd/arch/sh3eb/defs.mk | 8 +-
gnu/lib/libbfd/arch/sh3el/bfd.h | 1173 ++-
gnu/lib/libbfd/arch/sh3el/bfdver.h | 6 +
gnu/lib/libbfd/arch/sh3el/config.h | 62 +-
gnu/lib/libbfd/arch/sh3el/defs.mk | 8 +-
gnu/lib/libbfd/arch/sparc/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/sparc/bfdver.h | 6 +
gnu/lib/libbfd/arch/sparc/config.h | 16 +-
gnu/lib/libbfd/arch/sparc/defs.mk | 4 +-
gnu/lib/libbfd/arch/sparc64/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/sparc64/bfdver.h | 6 +
gnu/lib/libbfd/arch/sparc64/config.h | 16 +-
gnu/lib/libbfd/arch/sparc64/defs.mk | 4 +-
gnu/lib/libbfd/arch/vax/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/vax/bfdver.h | 6 +
gnu/lib/libbfd/arch/vax/config.h | 62 +-
gnu/lib/libbfd/arch/vax/defs.mk | 4 +-
gnu/lib/libbfd/arch/x86_64/bfd.h | 1171 ++-
gnu/lib/libbfd/arch/x86_64/bfdver.h | 6 +
gnu/lib/libbfd/arch/x86_64/config.h | 16 +-
gnu/lib/libbfd/arch/x86_64/defs.mk | 6 +-
gnu/lib/libbfd/lib_bfd.c | 2 +-
gnu/lib/libiberty/Makefile | 4 +-
gnu/lib/libiberty/config.h | 120 +-
gnu/lib/libiberty/defs.mk | 6 +-
gnu/lib/libopcodes/Makefile | 6 +-
gnu/lib/libopcodes/arch/alpha/config.h | 12 +-
gnu/lib/libopcodes/arch/alpha/defs.mk | 2 +-
gnu/lib/libopcodes/arch/arm/config.h | 12 +-
gnu/lib/libopcodes/arch/arm/defs.mk | 2 +-
gnu/lib/libopcodes/arch/armeb/config.h | 12 +-
gnu/lib/libopcodes/arch/armeb/defs.mk | 2 +-
gnu/lib/libopcodes/arch/hppa/config.h | 12 +-
gnu/lib/libopcodes/arch/hppa/defs.mk | 2 +-
gnu/lib/libopcodes/arch/i386/config.h | 12 +-
gnu/lib/libopcodes/arch/i386/defs.mk | 2 +-
gnu/lib/libopcodes/arch/m68000/config.h | 12 +-
gnu/lib/libopcodes/arch/m68000/defs.mk | 2 +-
gnu/lib/libopcodes/arch/m68k/config.h | 12 +-
gnu/lib/libopcodes/arch/m68k/defs.mk | 2 +-
gnu/lib/libopcodes/arch/mipseb/config.h | 12 +-
gnu/lib/libopcodes/arch/mipseb/defs.mk | 2 +-
gnu/lib/libopcodes/arch/mipsel/config.h | 12 +-
gnu/lib/libopcodes/arch/mipsel/defs.mk | 2 +-
gnu/lib/libopcodes/arch/powerpc/config.h | 8 +-
gnu/lib/libopcodes/arch/powerpc/defs.mk | 2 +-
gnu/lib/libopcodes/arch/sh3eb/config.h | 38 +-
gnu/lib/libopcodes/arch/sh3eb/defs.mk | 2 +-
gnu/lib/libopcodes/arch/sh3el/config.h | 38 +-
gnu/lib/libopcodes/arch/sh3el/defs.mk | 2 +-
gnu/lib/libopcodes/arch/sparc/config.h | 12 +-
gnu/lib/libopcodes/arch/sparc/defs.mk | 2 +-
gnu/lib/libopcodes/arch/sparc64/config.h | 12 +-
gnu/lib/libopcodes/arch/sparc64/defs.mk | 2 +-
gnu/lib/libopcodes/arch/vax/config.h | 38 +-
gnu/lib/libopcodes/arch/vax/defs.mk | 2 +-
gnu/lib/libopcodes/arch/x86_64/config.h | 12 +-
gnu/lib/libopcodes/arch/x86_64/defs.mk | 2 +-
gnu/usr.bin/binutils/Makefile | 6 +-
gnu/usr.bin/binutils/common/Makefile.inc | 7 +-
gnu/usr.bin/binutils/ld/Makefile | 10 +-
gnu/usr.bin/binutils/libbfd/Makefile | 81 -
gnu/usr.bin/binutils/libbfd/arch/alpha/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/alpha/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/alpha/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/alpha/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/arm/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/arm/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/arm/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/arm/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/armeb/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/armeb/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/armeb/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/armeb/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/hppa/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/hppa/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/hppa/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/hppa/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/i386/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/i386/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/i386/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/i386/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/m68000/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/m68000/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/m68000/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/m68000/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/m68k/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/m68k/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/m68k/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/m68k/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/mipseb/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/mipseb/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/mipseb/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/mipseb/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/mipsel/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/mipsel/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/mipsel/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/mipsel/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/powerpc/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/powerpc/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/powerpc/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/powerpc/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/sh3eb/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/sh3eb/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/sh3eb/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/sh3eb/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/sh3el/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/sh3el/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/sh3el/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/sh3el/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/sparc/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/sparc/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/sparc/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/sparc/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/sparc64/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/sparc64/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/sparc64/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/sparc64/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/vax/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/vax/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/vax/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/vax/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/arch/x86_64/bfd.h | 4445 -----------------
gnu/usr.bin/binutils/libbfd/arch/x86_64/bfdver.h | 6 -
gnu/usr.bin/binutils/libbfd/arch/x86_64/config.h | 277 -
gnu/usr.bin/binutils/libbfd/arch/x86_64/defs.mk | 8 -
gnu/usr.bin/binutils/libbfd/lib_bfd.c | 4 -
gnu/usr.bin/binutils/libiberty/Makefile | 22 -
gnu/usr.bin/binutils/libiberty/config.h | 330 -
gnu/usr.bin/binutils/libiberty/defs.mk | 7 -
gnu/usr.bin/binutils/libopcodes/Makefile | 36 -
gnu/usr.bin/binutils/libopcodes/arch/alpha/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/alpha/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/arm/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/arm/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/armeb/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/armeb/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/hppa/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/hppa/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/i386/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/i386/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/m68000/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/m68000/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/m68k/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/m68k/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/mipseb/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/mipseb/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/mipsel/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/mipsel/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/powerpc/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/powerpc/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/sh3eb/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/sh3eb/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/sh3el/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/sh3el/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/sparc/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/sparc/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/sparc64/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/sparc64/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/vax/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/vax/defs.mk | 6 -
gnu/usr.bin/binutils/libopcodes/arch/x86_64/config.h | 145 -
gnu/usr.bin/binutils/libopcodes/arch/x86_64/defs.mk | 6 -
gnu/usr.sbin/dbsym/Makefile | 8 +-
gnu/usr.sbin/mdsetimage/Makefile | 8 +-
share/mk/bsd.own.mk | 12 +-
tools/binutils/Makefile | 6 +-
212 files changed, 13183 insertions(+), 85312 deletions(-)
diffs (truncated from 115303 to 300 lines):
diff -r 7cbdf1da4cdc -r a13327c249d6 gnu/lib/Makefile
--- a/gnu/lib/Makefile Thu Dec 04 07:02:18 2003 +0000
+++ b/gnu/lib/Makefile Thu Dec 04 09:29:31 2003 +0000
@@ -1,11 +1,9 @@
-# $NetBSD: Makefile,v 1.36 2003/11/27 13:53:11 mrg Exp $
+# $NetBSD: Makefile,v 1.37 2003/12/04 09:29:31 mrg Exp $
.include <bsd.own.mk>
.if ${MKBFD} != "no"
-. if ${HAVE_BINUTILS214} == "no"
SUBDIR+= libopcodes libbfd libiberty
-. endif
.endif
.if ${MKGCC} != "no"
diff -r 7cbdf1da4cdc -r a13327c249d6 gnu/lib/libbfd/Makefile
--- a/gnu/lib/libbfd/Makefile Thu Dec 04 07:02:18 2003 +0000
+++ b/gnu/lib/libbfd/Makefile Thu Dec 04 09:29:31 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2003/10/21 10:01:19 lukem Exp $
+# $NetBSD: Makefile,v 1.37 2003/12/04 09:29:31 mrg Exp $
NOLINKLIB= # defined
NOLINT= # defined
@@ -20,11 +20,11 @@
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
+DIST= ${NETBSDSRCDIR}/gnu/dist/binutils
+
SHLIB_MAJOR= 5
SHLIB_MINOR= 0
-DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
-
GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} -I${DIST}/include -I. \
-I${DIST}/bfd ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*}
diff -r 7cbdf1da4cdc -r a13327c249d6 gnu/lib/libbfd/arch/alpha/bfd.h
--- a/gnu/lib/libbfd/arch/alpha/bfd.h Thu Dec 04 07:02:18 2003 +0000
+++ b/gnu/lib/libbfd/arch/alpha/bfd.h Thu Dec 04 09:29:31 2003 +0000
@@ -1,16 +1,18 @@
/* This file is automatically generated. DO NOT EDIT! */
-/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */
+/* Generated from: NetBSD: mknative-binutils,v 1.2 2003/11/27 10:52:53 mrg Exp */
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",
- "section.c", "archures.c", "reloc.c", "syms.c", "bfd.c", "archive.c",
- "corefile.c", "targets.c" and "format.c".
+ "bfdio.c", "bfdwin.c", "section.c", "archures.c", "reloc.c",
+ "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c",
+ "linker.c" and "simple.c".
Run "make headers" in your build bfd/ to regenerate. */
/* Main header file for the bfd library -- portable access to object files.
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002
- Free Software Foundation, Inc.
+
+ Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
+ 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
Contributed by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -50,10 +52,6 @@
#endif
#endif
-#define BFD_VERSION 213020100
-#define BFD_VERSION_DATE 20030102
-#define BFD_VERSION_STRING "2.13.2.1"
-
/* The word size used by BFD on the host. This may be 64 with a 32
bit target if the host is 64 bit, or if other 64 bit targets have
been selected with --enable-targets, or if --enable-64-bit-bfd. */
@@ -81,44 +79,29 @@
#endif
/* Forward declaration. */
-typedef struct _bfd bfd;
-
-/* To squelch erroneous compiler warnings ("illegal pointer
- combination") from the SVR3 compiler, we would like to typedef
- boolean to int (it doesn't like functions which return boolean.
- Making sure they are never implicitly declared to return int
- doesn't seem to help). But this file is not configured based on
- the host. */
-/* General rules: functions which are boolean return true on success
- and false on failure (unless they're a predicate). -- bfd.doc */
-/* I'm sure this is going to break something and someone is going to
- force me to change it. */
-/* typedef enum boolean {false, true} boolean; */
-/* Yup, SVR4 has a "typedef enum boolean" in <sys/types.h> -fnf */
-/* It gets worse if the host also defines a true/false enum... -sts */
-/* And even worse if your compiler has built-in boolean types... -law */
-/* And even worse if your compiler provides a stdbool.h that conflicts
- with these definitions... gcc 2.95 and later do. If so, it must
- be included first. -drow */
-#if defined (__GNUG__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
-#define TRUE_FALSE_ALREADY_DEFINED
-#else
-#if defined (__bool_true_false_are_defined)
-/* We have <stdbool.h>. */
-#define TRUE_FALSE_ALREADY_DEFINED
-#endif
-#endif
-#ifdef MPW
-/* Pre-emptive strike - get the file with the enum. */
-#include <Types.h>
-#define TRUE_FALSE_ALREADY_DEFINED
-#endif /* MPW */
-#ifndef TRUE_FALSE_ALREADY_DEFINED
-typedef enum bfd_boolean {false, true} boolean;
-#define BFD_TRUE_FALSE
-#else
-/* Use enum names that will appear nowhere else. */
-typedef enum bfd_boolean {bfd_fffalse, bfd_tttrue} boolean;
+typedef struct bfd bfd;
+
+/* Boolean type used in bfd. Too many systems define their own
+ versions of "boolean" for us to safely typedef a "boolean" of
+ our own. Using an enum for "bfd_boolean" has its own set of
+ problems, with strange looking casts required to avoid warnings
+ on some older compilers. Thus we just use an int.
+
+ General rule: Functions which are bfd_boolean return TRUE on
+ success and FALSE on failure (unless they're a predicate). */
+
+typedef int bfd_boolean;
+#undef FALSE
+#undef TRUE
+#define FALSE 0
+#define TRUE 1
+
+#if 0
+/* Poison. */
+#undef false
+#undef true
+#define false dont_use_false_in_bfd
+#define true dont_use_true_in_bfd
#endif
/* Support for different sizes of target format ints and addresses.
@@ -199,8 +182,10 @@
typedef bfd_signed_vma file_ptr;
typedef bfd_vma ufile_ptr;
-extern void bfd_sprintf_vma PARAMS ((bfd *, char *, bfd_vma));
-extern void bfd_fprintf_vma PARAMS ((bfd *, PTR, bfd_vma));
+extern void bfd_sprintf_vma
+ PARAMS ((bfd *, char *, bfd_vma));
+extern void bfd_fprintf_vma
+ PARAMS ((bfd *, PTR, bfd_vma));
#define printf_vma(x) fprintf_vma(stdout,x)
#define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
@@ -277,8 +262,8 @@
memory. If this is set, iostream points to a bfd_in_memory struct. */
#define BFD_IN_MEMORY 0x800
-/* BFD is a position independent object. */
-#define BFD_PIC 0x1000
+/* The sections in this BFD specify a memory page. */
+#define HAS_LOAD_PAGE 0x1000
/* Symbols and relocation. */
@@ -358,9 +343,9 @@
#define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
-#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = (unsigned int)true), true)
-#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),true)
-#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),true)
+#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)
+#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
+#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
typedef struct stat stat_type;
@@ -386,7 +371,8 @@
/* Get the name of a stabs type code. */
-extern const char *bfd_get_stab_name PARAMS ((int));
+extern const char *bfd_get_stab_name
+ PARAMS ((int));
/* Hash table routines. There is no way to free up a hash table. */
@@ -419,23 +405,22 @@
built each of which calls the function in the superclass. Thus
each function should be written to allocate a new block of memory
only if the argument is NULL. */
- struct bfd_hash_entry *(*newfunc) PARAMS ((struct bfd_hash_entry *,
- struct bfd_hash_table *,
- const char *));
+ struct bfd_hash_entry *(*newfunc)
+ PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *));
/* An objalloc for this hash table. This is a struct objalloc *,
but we use PTR to avoid requiring the inclusion of objalloc.h. */
PTR memory;
};
/* Initialize a hash table. */
-extern boolean bfd_hash_table_init
+extern bfd_boolean bfd_hash_table_init
PARAMS ((struct bfd_hash_table *,
struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
struct bfd_hash_table *,
const char *)));
/* Initialize a hash table specifying a size. */
-extern boolean bfd_hash_table_init_n
+extern bfd_boolean bfd_hash_table_init_n
PARAMS ((struct bfd_hash_table *,
struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
struct bfd_hash_table *,
@@ -443,15 +428,16 @@
unsigned int size));
/* Free up a hash table. */
-extern void bfd_hash_table_free PARAMS ((struct bfd_hash_table *));
-
-/* Look up a string in a hash table. If CREATE is true, a new entry
+extern void bfd_hash_table_free
+ PARAMS ((struct bfd_hash_table *));
+
+/* Look up a string in a hash table. If CREATE is TRUE, a new entry
will be created for this string if one does not already exist. The
- COPY argument must be true if this routine should copy the string
+ COPY argument must be TRUE if this routine should copy the string
into newly allocated memory when adding an entry. */
extern struct bfd_hash_entry *bfd_hash_lookup
- PARAMS ((struct bfd_hash_table *, const char *, boolean create,
- boolean copy));
+ PARAMS ((struct bfd_hash_table *, const char *, bfd_boolean create,
+ bfd_boolean copy));
/* Replace an entry in a hash table. */
extern void bfd_hash_replace
@@ -464,16 +450,16 @@
const char *));
/* Grab some space for a hash table entry. */
-extern PTR bfd_hash_allocate PARAMS ((struct bfd_hash_table *,
- unsigned int));
+extern PTR bfd_hash_allocate
+ PARAMS ((struct bfd_hash_table *, unsigned int));
/* Traverse a hash table in a random order, calling a function on each
- element. If the function returns false, the traversal stops. The
+ element. If the function returns FALSE, the traversal stops. The
INFO argument is passed to the function. */
-extern void bfd_hash_traverse PARAMS ((struct bfd_hash_table *,
- boolean (*) (struct bfd_hash_entry *,
- PTR),
- PTR info));
+extern void bfd_hash_traverse
+ PARAMS ((struct bfd_hash_table *,
+ bfd_boolean (*) (struct bfd_hash_entry *, PTR),
+ PTR info));
#define COFF_SWAP_TABLE (PTR) &bfd_coff_std_swap_table
@@ -482,12 +468,18 @@
/* Direct I/O routines, for programs which know more about the object
file than BFD does. Use higher level routines if possible. */
-extern bfd_size_type bfd_bread PARAMS ((PTR, bfd_size_type, bfd *));
-extern bfd_size_type bfd_bwrite PARAMS ((const PTR, bfd_size_type, bfd *));
-extern int bfd_seek PARAMS ((bfd *, file_ptr, int));
-extern ufile_ptr bfd_tell PARAMS ((bfd *));
-extern int bfd_flush PARAMS ((bfd *));
-extern int bfd_stat PARAMS ((bfd *, struct stat *));
+extern bfd_size_type bfd_bread
+ PARAMS ((PTR, bfd_size_type, bfd *));
+extern bfd_size_type bfd_bwrite
+ PARAMS ((const PTR, bfd_size_type, bfd *));
+extern int bfd_seek
+ PARAMS ((bfd *, file_ptr, int));
+extern ufile_ptr bfd_tell
+ PARAMS ((bfd *));
+extern int bfd_flush
+ PARAMS ((bfd *));
+extern int bfd_stat
+ PARAMS ((bfd *, struct stat *));
/* Deprecated old routines. */
#if __GNUC__
@@ -542,40 +534,61 @@
#define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
-#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = (boolean) (bool)), true)
-
-extern boolean bfd_cache_close PARAMS ((bfd *abfd));
Home |
Main Index |
Thread Index |
Old Index