Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.bin/binutils new configurations for all supported pl...



details:   https://anonhg.NetBSD.org/src/rev/5cb7f5912418
branches:  trunk
changeset: 555872:5cb7f5912418
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Dec 03 06:53:48 2003 +0000

description:
new configurations for all supported platforms tested and known working
on these platforms so far:
        - alpha, arm, i386, mipseb, mipsel, sparc64
built but not yet tested on:
        - armeb, sparc, amd64
build errors (mostly not related) on:
        - hppa, m68000, m68k, macppc, sh3el, sh3eb, vax

XXX again this is not everything required; many other changes in
XXX already used files are left out.

diffstat:

 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/defs.mk          |     4 +-
 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/defs.mk         |     4 +-
 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/libopcodes/arch/alpha/config.h   |   145 +
 gnu/usr.bin/binutils/libopcodes/arch/alpha/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/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 +
 86 files changed, 68422 insertions(+), 4 deletions(-)

diffs (truncated from 68778 to 300 lines):

diff -r b075e219938a -r 5cb7f5912418 gnu/usr.bin/binutils/libbfd/arch/alpha/bfd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/binutils/libbfd/arch/alpha/bfd.h      Wed Dec 03 06:53:48 2003 +0000
@@ -0,0 +1,4445 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* 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", 
+   "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, 2003 Free Software Foundation, Inc.
+
+   Contributed by Cygnus Support.
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifndef __BFD_H_SEEN__
+#define __BFD_H_SEEN__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "ansidecl.h"
+#include "symcat.h"
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#ifndef SABER
+/* This hack is to avoid a problem with some strict ANSI C preprocessors.
+   The problem is, "32_" is not a valid preprocessing token, and we don't
+   want extra underscores (e.g., "nlm_32_").  The XCONCAT2 macro will
+   cause the inner CONCAT2 macros to be evaluated first, producing
+   still-valid pp-tokens.  Then the final concatenation can be done.  */
+#undef CONCAT4
+#define CONCAT4(a,b,c,d) XCONCAT2(CONCAT2(a,b),CONCAT2(c,d))
+#endif
+#endif
+
+/* 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.  */
+#define BFD_ARCH_SIZE 64
+
+/* The word size of the default bfd target.  */
+#define BFD_DEFAULT_TARGET_SIZE 64
+
+#define BFD_HOST_64BIT_LONG 1
+#if 0
+#define BFD_HOST_64_BIT 
+#define BFD_HOST_U_64_BIT 
+#endif
+
+#if BFD_ARCH_SIZE >= 64
+#define BFD64
+#endif
+
+#ifndef INLINE
+#if __GNUC__ >= 2
+#define INLINE __inline__
+#else
+#define INLINE
+#endif
+#endif
+
+/* Forward declaration.  */
+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.
+   If the type `long' is at least 64 bits, BFD_HOST_64BIT_LONG will be
+   set to 1 above.  Otherwise, if gcc is being used, this code will
+   use gcc's "long long" type.  Otherwise, BFD_HOST_64_BIT must be
+   defined above.  */
+
+#ifndef BFD_HOST_64_BIT
+# if BFD_HOST_64BIT_LONG
+#  define BFD_HOST_64_BIT long
+#  define BFD_HOST_U_64_BIT unsigned long
+# else
+#  ifdef __GNUC__
+#   if __GNUC__ >= 2
+#    define BFD_HOST_64_BIT long long
+#    define BFD_HOST_U_64_BIT unsigned long long
+#   endif /* __GNUC__ >= 2 */
+#  endif /* ! defined (__GNUC__) */
+# endif /* ! BFD_HOST_64BIT_LONG */
+#endif /* ! defined (BFD_HOST_64_BIT) */
+
+#ifdef BFD64
+
+#ifndef BFD_HOST_64_BIT
+ #error No 64 bit integer type available
+#endif /* ! defined (BFD_HOST_64_BIT) */
+
+typedef BFD_HOST_U_64_BIT bfd_vma;
+typedef BFD_HOST_64_BIT bfd_signed_vma;
+typedef BFD_HOST_U_64_BIT bfd_size_type;
+typedef BFD_HOST_U_64_BIT symvalue;
+
+#ifndef fprintf_vma
+#if BFD_HOST_64BIT_LONG
+#define sprintf_vma(s,x) sprintf (s, "%016lx", x)
+#define fprintf_vma(f,x) fprintf (f, "%016lx", x)
+#else
+#define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff)))
+#define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff))
+#define fprintf_vma(s,x) \
+  fprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))
+#define sprintf_vma(s,x) \
+  sprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))
+#endif
+#endif
+
+#else /* not BFD64  */
+
+/* Represent a target address.  Also used as a generic unsigned type
+   which is guaranteed to be big enough to hold any arithmetic types
+   we need to deal with.  */
+typedef unsigned long bfd_vma;
+
+/* A generic signed type which is guaranteed to be big enough to hold any
+   arithmetic types we need to deal with.  Can be assumed to be compatible
+   with bfd_vma in the same way that signed and unsigned ints are compatible
+   (as parameters, in assignment, etc).  */
+typedef long bfd_signed_vma;
+
+typedef unsigned long symvalue;
+typedef unsigned long bfd_size_type;
+
+/* Print a bfd_vma x on stream s.  */
+#define fprintf_vma(s,x) fprintf (s, "%08lx", x)
+#define sprintf_vma(s,x) sprintf (s, "%08lx", x)
+
+#endif /* not BFD64  */
+
+/* A pointer to a position in a file.  */
+/* FIXME:  This should be using off_t from <sys/types.h>.
+   For now, try to avoid breaking stuff by not including <sys/types.h> here.
+   This will break on systems with 64-bit file offsets (e.g. 4.4BSD).
+   Probably the best long-term answer is to avoid using file_ptr AND off_t
+   in this header file, and to handle this in the BFD implementation
+   rather than in its interface.  */
+/* typedef off_t       file_ptr; */
+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));
+
+#define printf_vma(x) fprintf_vma(stdout,x)
+#define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
+
+typedef unsigned int flagword; /* 32 bits of flags */
+typedef unsigned char bfd_byte;
+
+/* File formats.  */
+
+typedef enum bfd_format
+{
+  bfd_unknown = 0,     /* File format is unknown.  */
+  bfd_object,          /* Linker/assember/compiler output.  */
+  bfd_archive,         /* Object archive file.  */
+  bfd_core,            /* Core dump.  */
+  bfd_type_end         /* Marks the end; don't use it!  */
+}
+bfd_format;
+
+/* Values that may appear in the flags field of a BFD.  These also
+   appear in the object_flags field of the bfd_target structure, where
+   they indicate the set of flags used by that backend (not all flags
+   are meaningful for all object file formats) (FIXME: at the moment,
+   the object_flags values have mostly just been copied from backend
+   to another, and are not necessarily correct).  */
+
+/* No flags.  */
+#define BFD_NO_FLAGS           0x00
+
+/* BFD contains relocation entries.  */
+#define HAS_RELOC      0x01
+
+/* BFD is directly executable.  */
+#define EXEC_P         0x02
+
+/* BFD has line number information (basically used for F_LNNO in a
+   COFF header).  */
+#define HAS_LINENO     0x04
+
+/* BFD has debugging information.  */
+#define HAS_DEBUG      0x08
+
+/* BFD has symbols.  */
+#define HAS_SYMS       0x10
+
+/* BFD has local symbols (basically used for F_LSYMS in a COFF
+   header).  */
+#define HAS_LOCALS     0x20
+
+/* BFD is a dynamic object.  */
+#define DYNAMIC        0x40
+
+/* Text section is write protected (if D_PAGED is not set, this is
+   like an a.out NMAGIC file) (the linker sets this by default, but
+   clears it for -r or -N).  */
+#define WP_TEXT        0x80
+
+/* BFD is dynamically paged (this is like an a.out ZMAGIC file) (the
+   linker sets this by default, but clears it for -r or -n or -N).  */
+#define D_PAGED        0x100
+
+/* BFD is relaxable (this means that bfd_relax_section may be able to
+   do something) (sometimes bfd_relax_section can do something even if
+   this is not set).  */
+#define BFD_IS_RELAXABLE 0x200
+
+/* This may be set before writing out a BFD to request using a
+   traditional format.  For example, this is used to request that when
+   writing out an a.out object the symbols not be hashed to eliminate
+   duplicates.  */
+#define BFD_TRADITIONAL_FORMAT 0x400
+
+/* This flag indicates that the BFD contents are actually cached in
+   memory.  If this is set, iostream points to a bfd_in_memory struct.  */
+#define BFD_IN_MEMORY 0x800
+
+/* The sections in this BFD specify a memory page.  */
+#define HAS_LOAD_PAGE 0x1000
+
+/* Symbols and relocation.  */
+
+/* A count of carsyms (canonical archive symbols).  */
+typedef unsigned long symindex;
+
+/* How to perform a relocation.  */
+typedef const struct reloc_howto_struct reloc_howto_type;
+
+#define BFD_NO_MORE_SYMBOLS ((symindex) ~0)
+
+/* General purpose part of a symbol X;
+   target specific parts are in libcoff.h, libaout.h, etc.  */
+
+#define bfd_get_section(x) ((x)->section)
+#define bfd_get_output_section(x) ((x)->section->output_section)
+#define bfd_set_section(x,y) ((x)->section) = (y)
+#define bfd_asymbol_base(x) ((x)->section->vma)
+#define bfd_asymbol_value(x) (bfd_asymbol_base(x) + (x)->value)
+#define bfd_asymbol_name(x) ((x)->name)
+/*Perhaps future: #define bfd_asymbol_bfd(x) ((x)->section->owner)*/
+#define bfd_asymbol_bfd(x) ((x)->the_bfd)
+#define bfd_asymbol_flavour(x) (bfd_asymbol_bfd(x)->xvec->flavour)
+
+/* A canonical archive symbol.  */
+/* This is a type pun with struct ranlib on purpose!  */
+typedef struct carsym
+{
+  char *name;
+  file_ptr file_offset;        /* Look here to find the file.  */



Home | Main Index | Thread Index | Old Index