* version.h: New file.
* bfd-in.h: (BFD_VERSION): Substitute bfd_version. (BFD_VERSION_DATE): Define. (BFD_VERSION_STRING): Define. * configure.in: AC_SUBST bfd_version, bfd_version_date and bfd_version_string. (AC_OUTPUT <bfd-in3.h>): Depend on version.h. * bfd-in2.h: Regenerate. * configure: Regenerate. * Makefile.am: Run "make dep-am" * Makefile.in: Regenerate. * bfd-in.h: Include "symcat.h". (CONCAT4): Redefine as for old CAT4. * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros. Add warning regarding whitespace. * aout-cris.c: Likewise. * aout-ns32k.c: Likewise. * aout-sparcle.c: Likewise. * aout-tic30.c: Likewise. * aout0.c: Likewise. * armnetbsd.c: Likewise. * demo64.c: Likewise. * elf-bfd.h: Likewise. * gen-aout.c: Likewise. * host-aout.c: Likewise. * hp300bsd.c: Likewise. * hp300hpux.c: Likewise. * i386aout.c: Likewise. * i386bsd.c: Likewise. * i386dynix.c: Likewise. * i386freebsd.c: Likewise. * i386linux.c: Likewise. * i386lynx.c: Likewise. * i386mach3.c: Likewise. * i386netbsd.c: Likewise. * libaout.h: Likewise. * m68k4knetbsd.c: Likewise. * m68klinux.c: Likewise. * m68klynx.c: Likewise. * m68knetbsd.c: Likewise. * m88kmach3.c: Likewise. * mipsbsd.c: Likewise. * newsos3.c: Likewise. * ns32knetbsd.c: Likewise. * pc532-mach.c: Likewise. * pdp11.c: Likewise. * riscix.c: Likewise. * sparclinux.c: Likewise. * sparclynx.c: Likewise. * sparcnetbsd.c: Likewise. * sunos.c: Likewise. * targets.c: Likewise. * vaxnetbsd.c: Likewise. * vms-hdr.c: Likewise.
This commit is contained in:
parent
39ae698d7d
commit
e43d48ccc3
48 changed files with 2048 additions and 1695 deletions
|
@ -1,3 +1,61 @@
|
||||||
|
2001-10-02 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* version.h: New file.
|
||||||
|
* bfd-in.h: (BFD_VERSION): Substitute bfd_version.
|
||||||
|
(BFD_VERSION_DATE): Define.
|
||||||
|
(BFD_VERSION_STRING): Define.
|
||||||
|
* configure.in: AC_SUBST bfd_version, bfd_version_date and
|
||||||
|
bfd_version_string.
|
||||||
|
(AC_OUTPUT <bfd-in3.h>): Depend on version.h.
|
||||||
|
* bfd-in2.h: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* Makefile.am: Run "make dep-am".
|
||||||
|
* Makefile.in: Regenerate.
|
||||||
|
|
||||||
|
* bfd-in.h: Include "symcat.h".
|
||||||
|
(CONCAT4): Redefine as for old CAT4.
|
||||||
|
* aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
|
||||||
|
Add warning regarding whitespace.
|
||||||
|
* aout-cris.c: Likewise.
|
||||||
|
* aout-ns32k.c: Likewise.
|
||||||
|
* aout-sparcle.c: Likewise.
|
||||||
|
* aout-tic30.c: Likewise.
|
||||||
|
* aout0.c: Likewise.
|
||||||
|
* armnetbsd.c: Likewise.
|
||||||
|
* demo64.c: Likewise.
|
||||||
|
* elf-bfd.h: Likewise.
|
||||||
|
* gen-aout.c: Likewise.
|
||||||
|
* host-aout.c: Likewise.
|
||||||
|
* hp300bsd.c: Likewise.
|
||||||
|
* hp300hpux.c: Likewise.
|
||||||
|
* i386aout.c: Likewise.
|
||||||
|
* i386bsd.c: Likewise.
|
||||||
|
* i386dynix.c: Likewise.
|
||||||
|
* i386freebsd.c: Likewise.
|
||||||
|
* i386linux.c: Likewise.
|
||||||
|
* i386lynx.c: Likewise.
|
||||||
|
* i386mach3.c: Likewise.
|
||||||
|
* i386netbsd.c: Likewise.
|
||||||
|
* libaout.h: Likewise.
|
||||||
|
* m68k4knetbsd.c: Likewise.
|
||||||
|
* m68klinux.c: Likewise.
|
||||||
|
* m68klynx.c: Likewise.
|
||||||
|
* m68knetbsd.c: Likewise.
|
||||||
|
* m88kmach3.c: Likewise.
|
||||||
|
* mipsbsd.c: Likewise.
|
||||||
|
* newsos3.c: Likewise.
|
||||||
|
* ns32knetbsd.c: Likewise.
|
||||||
|
* pc532-mach.c: Likewise.
|
||||||
|
* pdp11.c: Likewise.
|
||||||
|
* riscix.c: Likewise.
|
||||||
|
* sparclinux.c: Likewise.
|
||||||
|
* sparclynx.c: Likewise.
|
||||||
|
* sparcnetbsd.c: Likewise.
|
||||||
|
* sunos.c: Likewise.
|
||||||
|
* targets.c: Likewise.
|
||||||
|
* vaxnetbsd.c: Likewise.
|
||||||
|
* vms-hdr.c: Likewise.
|
||||||
|
|
||||||
2001-10-01 Alan Modra <amodra@bigpond.net.au>
|
2001-10-01 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* bfd-in.h: Remove comments regarding generated files.
|
* bfd-in.h: Remove comments regarding generated files.
|
||||||
|
|
1271
bfd/Makefile.am
1271
bfd/Makefile.am
File diff suppressed because it is too large
Load diff
1281
bfd/Makefile.in
1281
bfd/Makefile.in
File diff suppressed because it is too large
Load diff
|
@ -21,9 +21,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
|
|
||||||
/* Avoid multiple defininitions from aoutx if supporting standarad a.out
|
/* Avoid multiple defininitions from aoutx if supporting standarad a.out
|
||||||
as well as our own. */
|
as well as our own. */
|
||||||
#define NAME(x,y) CAT3(aoutarm,_32_,y)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define NAME(x,y) CONCAT3 (aoutarm,_32_,y)
|
||||||
|
|
||||||
#define N_TXTADDR(x) \
|
#define N_TXTADDR(x) \
|
||||||
((N_MAGIC (x) == NMAGIC) \
|
((N_MAGIC (x) == NMAGIC) \
|
||||||
|
@ -39,7 +43,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
||||||
#define DEFAULT_ARCH bfd_arch_arm
|
#define DEFAULT_ARCH bfd_arch_arm
|
||||||
|
|
||||||
#define MY(OP) CAT(aoutarm_,OP)
|
#define MY(OP) CONCAT2 (aoutarm_,OP)
|
||||||
#define N_BADMAG(x) ((((x).a_info & ~007200) != ZMAGIC) && \
|
#define N_BADMAG(x) ((((x).a_info & ~007200) != ZMAGIC) && \
|
||||||
(((x).a_info & ~006000) != OMAGIC) && \
|
(((x).a_info & ~006000) != OMAGIC) && \
|
||||||
((x).a_info != NMAGIC))
|
((x).a_info != NMAGIC))
|
||||||
|
|
|
@ -64,10 +64,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
/* The definition here seems not used; just provided as a convention. */
|
/* The definition here seems not used; just provided as a convention. */
|
||||||
#define DEFAULT_ARCH bfd_arch_cris
|
#define DEFAULT_ARCH bfd_arch_cris
|
||||||
|
|
||||||
/* ??? Spacing might be essential for the parameters in this macro.
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
Do Not Change. */
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
#define MY(OP) CAT (cris_aout_,OP)
|
the tokens. */
|
||||||
#define NAME(x,y) CAT3(cris_aout,_32_,y)
|
#define MY(OP) CONCAT2 (cris_aout_,OP)
|
||||||
|
#define NAME(x, y) CONCAT3 (cris_aout,_32_,y)
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#include "aout/aout64.h"
|
#include "aout/aout64.h"
|
||||||
#include "ns32k.h"
|
#include "ns32k.h"
|
||||||
|
|
||||||
#define MYNS(OP) CAT(ns32kaout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MYNS(OP) CONCAT2 (ns32kaout_,OP)
|
||||||
|
|
||||||
reloc_howto_type *
|
reloc_howto_type *
|
||||||
MYNS(bfd_reloc_type_lookup)
|
MYNS(bfd_reloc_type_lookup)
|
||||||
PARAMS((bfd *abfd AND
|
PARAMS((bfd *abfd AND
|
||||||
|
@ -37,7 +41,7 @@ MYNS(write_object_contents)
|
||||||
|
|
||||||
/* Avoid multiple definitions from aoutx if supporting
|
/* Avoid multiple definitions from aoutx if supporting
|
||||||
standard a.out format(s) as well as this one. */
|
standard a.out format(s) as well as this one. */
|
||||||
#define NAME(x,y) CAT3(ns32kaout,_32_,y)
|
#define NAME(x,y) CONCAT3 (ns32kaout,_32_,y)
|
||||||
|
|
||||||
void bfd_ns32k_arch PARAMS ((void));
|
void bfd_ns32k_arch PARAMS ((void));
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD backend for sparc little-endian aout binaries.
|
/* BFD backend for sparc little-endian aout binaries.
|
||||||
Copyright 1996 Free Software Foundation, Inc.
|
Copyright 1996, 2001 Free Software Foundation, Inc.
|
||||||
Written by Cygnus Support.
|
Written by Cygnus Support.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -19,7 +19,11 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#define TARGETNAME "a.out-sparc-little"
|
#define TARGETNAME "a.out-sparc-little"
|
||||||
#define MY(OP) CAT(sparcle_aout_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (sparcle_aout_,OP)
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "bfdlink.h"
|
#include "bfdlink.h"
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
#define DEFAULT_ARCH bfd_arch_tic30
|
#define DEFAULT_ARCH bfd_arch_tic30
|
||||||
#define ARCH_SIZE 32
|
#define ARCH_SIZE 32
|
||||||
|
|
||||||
#define MY(OP) CAT(tic30_aout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (tic30_aout_,OP)
|
||||||
#define TARGETNAME "a.out-tic30"
|
#define TARGETNAME "a.out-tic30"
|
||||||
#define NAME(x,y) CAT3(tic30_aout,_32_,y)
|
#define NAME(x,y) CONCAT3 (tic30_aout,_32_,y)
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD backend for SunOS style a.out with flags set to 0
|
/* BFD backend for SunOS style a.out with flags set to 0
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Written by Cygnus Support.
|
Written by Cygnus Support.
|
||||||
|
|
||||||
|
@ -20,7 +20,11 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#define TARGETNAME "a.out-zero-big"
|
#define TARGETNAME "a.out-zero-big"
|
||||||
#define MY(OP) CAT(aout0_big_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (aout0_big_,OP)
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for NetBSD/ARM a.out-ish binaries.
|
/* BFD back-end for NetBSD/ARM a.out-ish binaries.
|
||||||
Copyright 1999, 2000 Free Software Foundation, Inc.
|
Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -27,12 +27,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_MID M_ARM6_NETBSD
|
#define DEFAULT_MID M_ARM6_NETBSD
|
||||||
/*#define MACHTYPE_OK(mtype) ((mtype) == M_ARM6_NETBSD)*/
|
/*#define MACHTYPE_OK(mtype) ((mtype) == M_ARM6_NETBSD)*/
|
||||||
|
|
||||||
#define MY(OP) CAT (armnetbsd_, OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (armnetbsd_, OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-arm-netbsd"
|
#define TARGETNAME "a.out-arm-netbsd"
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#define NAME(x,y) CAT3(aoutarm,_32_,y)
|
#define NAME(x,y) CONCAT3 (aoutarm,_32_,y)
|
||||||
|
|
||||||
#define aoutarm_32_get_section_contents aout_32_get_section_contents
|
#define aoutarm_32_get_section_contents aout_32_get_section_contents
|
||||||
|
|
||||||
|
|
43
bfd/bfd-in.h
43
bfd/bfd-in.h
|
@ -28,8 +28,22 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ansidecl.h"
|
#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
|
||||||
|
|
||||||
#define BFD_VERSION "@VERSION@"
|
#define BFD_VERSION @bfd_version@
|
||||||
|
#define BFD_VERSION_DATE @bfd_version_date@
|
||||||
|
#define BFD_VERSION_STRING @bfd_version_string@
|
||||||
|
|
||||||
/* The word size used by BFD on the host. This may be 64 with a 32
|
/* 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
|
bit target if the host is 64 bit, or if other 64 bit targets have
|
||||||
|
@ -430,34 +444,9 @@ extern void bfd_hash_traverse PARAMS ((struct bfd_hash_table *,
|
||||||
boolean (*) (struct bfd_hash_entry *,
|
boolean (*) (struct bfd_hash_entry *,
|
||||||
PTR),
|
PTR),
|
||||||
PTR info));
|
PTR info));
|
||||||
|
|
||||||
/* Semi-portable string concatenation in cpp.
|
|
||||||
The CAT4 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 XCAT2 macro will cause the
|
|
||||||
inner CAT macros to be evaluated first, producing still-valid pp-tokens.
|
|
||||||
Then the final concatenation can be done. (Sigh.) */
|
|
||||||
#ifndef CAT
|
|
||||||
#ifdef SABER
|
|
||||||
#define CAT(a,b) a##b
|
|
||||||
#define CAT3(a,b,c) a##b##c
|
|
||||||
#define CAT4(a,b,c,d) a##b##c##d
|
|
||||||
#else
|
|
||||||
#if defined(__STDC__) || defined(ALMOST_STDC)
|
|
||||||
#define CAT(a,b) a##b
|
|
||||||
#define CAT3(a,b,c) a##b##c
|
|
||||||
#define XCAT2(a,b) CAT(a,b)
|
|
||||||
#define CAT4(a,b,c,d) XCAT2(CAT(a,b),CAT(c,d))
|
|
||||||
#else
|
|
||||||
#define CAT(a,b) a/**/b
|
|
||||||
#define CAT3(a,b,c) a/**/b/**/c
|
|
||||||
#define CAT4(a,b,c,d) a/**/b/**/c/**/d
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define COFF_SWAP_TABLE (PTR) &bfd_coff_std_swap_table
|
#define COFF_SWAP_TABLE (PTR) &bfd_coff_std_swap_table
|
||||||
|
|
||||||
/* User program access to BFD facilities */
|
/* User program access to BFD facilities */
|
||||||
|
|
||||||
/* Direct I/O routines, for programs which know more about the object
|
/* Direct I/O routines, for programs which know more about the object
|
||||||
|
|
149
bfd/bfd-in2.h
149
bfd/bfd-in2.h
|
@ -34,8 +34,22 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ansidecl.h"
|
#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
|
||||||
|
|
||||||
#define BFD_VERSION "@VERSION@"
|
#define BFD_VERSION @bfd_version@
|
||||||
|
#define BFD_VERSION_DATE @bfd_version_date@
|
||||||
|
#define BFD_VERSION_STRING @bfd_version_string@
|
||||||
|
|
||||||
/* The word size used by BFD on the host. This may be 64 with a 32
|
/* 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
|
bit target if the host is 64 bit, or if other 64 bit targets have
|
||||||
|
@ -436,34 +450,9 @@ extern void bfd_hash_traverse PARAMS ((struct bfd_hash_table *,
|
||||||
boolean (*) (struct bfd_hash_entry *,
|
boolean (*) (struct bfd_hash_entry *,
|
||||||
PTR),
|
PTR),
|
||||||
PTR info));
|
PTR info));
|
||||||
|
|
||||||
/* Semi-portable string concatenation in cpp.
|
|
||||||
The CAT4 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 XCAT2 macro will cause the
|
|
||||||
inner CAT macros to be evaluated first, producing still-valid pp-tokens.
|
|
||||||
Then the final concatenation can be done. (Sigh.) */
|
|
||||||
#ifndef CAT
|
|
||||||
#ifdef SABER
|
|
||||||
#define CAT(a,b) a##b
|
|
||||||
#define CAT3(a,b,c) a##b##c
|
|
||||||
#define CAT4(a,b,c,d) a##b##c##d
|
|
||||||
#else
|
|
||||||
#if defined(__STDC__) || defined(ALMOST_STDC)
|
|
||||||
#define CAT(a,b) a##b
|
|
||||||
#define CAT3(a,b,c) a##b##c
|
|
||||||
#define XCAT2(a,b) CAT(a,b)
|
|
||||||
#define CAT4(a,b,c,d) XCAT2(CAT(a,b),CAT(c,d))
|
|
||||||
#else
|
|
||||||
#define CAT(a,b) a/**/b
|
|
||||||
#define CAT3(a,b,c) a/**/b/**/c
|
|
||||||
#define CAT4(a,b,c,d) a/**/b/**/c/**/d
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define COFF_SWAP_TABLE (PTR) &bfd_coff_std_swap_table
|
#define COFF_SWAP_TABLE (PTR) &bfd_coff_std_swap_table
|
||||||
|
|
||||||
/* User program access to BFD facilities */
|
/* User program access to BFD facilities */
|
||||||
|
|
||||||
/* Direct I/O routines, for programs which know more about the object
|
/* Direct I/O routines, for programs which know more about the object
|
||||||
|
@ -3474,11 +3463,11 @@ typedef struct bfd_target
|
||||||
|
|
||||||
/* Generic entry points. */
|
/* Generic entry points. */
|
||||||
#define BFD_JUMP_TABLE_GENERIC(NAME) \
|
#define BFD_JUMP_TABLE_GENERIC(NAME) \
|
||||||
CAT(NAME,_close_and_cleanup),\
|
CONCAT2 (NAME,_close_and_cleanup), \
|
||||||
CAT(NAME,_bfd_free_cached_info),\
|
CONCAT2 (NAME,_bfd_free_cached_info), \
|
||||||
CAT(NAME,_new_section_hook),\
|
CONCAT2 (NAME,_new_section_hook), \
|
||||||
CAT(NAME,_get_section_contents),\
|
CONCAT2 (NAME,_get_section_contents), \
|
||||||
CAT(NAME,_get_section_contents_in_window)
|
CONCAT2 (NAME,_get_section_contents_in_window)
|
||||||
|
|
||||||
/* Called when the BFD is being closed to do any necessary cleanup. */
|
/* Called when the BFD is being closed to do any necessary cleanup. */
|
||||||
boolean (*_close_and_cleanup) PARAMS ((bfd *));
|
boolean (*_close_and_cleanup) PARAMS ((bfd *));
|
||||||
|
@ -3494,12 +3483,12 @@ CAT(NAME,_get_section_contents_in_window)
|
||||||
|
|
||||||
/* Entry points to copy private data. */
|
/* Entry points to copy private data. */
|
||||||
#define BFD_JUMP_TABLE_COPY(NAME) \
|
#define BFD_JUMP_TABLE_COPY(NAME) \
|
||||||
CAT(NAME,_bfd_copy_private_bfd_data),\
|
CONCAT2 (NAME,_bfd_copy_private_bfd_data), \
|
||||||
CAT(NAME,_bfd_merge_private_bfd_data),\
|
CONCAT2 (NAME,_bfd_merge_private_bfd_data), \
|
||||||
CAT(NAME,_bfd_copy_private_section_data),\
|
CONCAT2 (NAME,_bfd_copy_private_section_data), \
|
||||||
CAT(NAME,_bfd_copy_private_symbol_data),\
|
CONCAT2 (NAME,_bfd_copy_private_symbol_data), \
|
||||||
CAT(NAME,_bfd_set_private_flags),\
|
CONCAT2 (NAME,_bfd_set_private_flags), \
|
||||||
CAT(NAME,_bfd_print_private_bfd_data)\
|
CONCAT2 (NAME,_bfd_print_private_bfd_data) \
|
||||||
/* Called to copy BFD general private data from one object file
|
/* Called to copy BFD general private data from one object file
|
||||||
to another. */
|
to another. */
|
||||||
boolean (*_bfd_copy_private_bfd_data) PARAMS ((bfd *, bfd *));
|
boolean (*_bfd_copy_private_bfd_data) PARAMS ((bfd *, bfd *));
|
||||||
|
@ -3522,25 +3511,25 @@ CAT(NAME,_bfd_print_private_bfd_data)\
|
||||||
|
|
||||||
/* Core file entry points. */
|
/* Core file entry points. */
|
||||||
#define BFD_JUMP_TABLE_CORE(NAME) \
|
#define BFD_JUMP_TABLE_CORE(NAME) \
|
||||||
CAT(NAME,_core_file_failing_command),\
|
CONCAT2 (NAME,_core_file_failing_command), \
|
||||||
CAT(NAME,_core_file_failing_signal),\
|
CONCAT2 (NAME,_core_file_failing_signal), \
|
||||||
CAT(NAME,_core_file_matches_executable_p)
|
CONCAT2 (NAME,_core_file_matches_executable_p)
|
||||||
char * (*_core_file_failing_command) PARAMS ((bfd *));
|
char * (*_core_file_failing_command) PARAMS ((bfd *));
|
||||||
int (*_core_file_failing_signal) PARAMS ((bfd *));
|
int (*_core_file_failing_signal) PARAMS ((bfd *));
|
||||||
boolean (*_core_file_matches_executable_p) PARAMS ((bfd *, bfd *));
|
boolean (*_core_file_matches_executable_p) PARAMS ((bfd *, bfd *));
|
||||||
|
|
||||||
/* Archive entry points. */
|
/* Archive entry points. */
|
||||||
#define BFD_JUMP_TABLE_ARCHIVE(NAME) \
|
#define BFD_JUMP_TABLE_ARCHIVE(NAME) \
|
||||||
CAT(NAME,_slurp_armap),\
|
CONCAT2 (NAME,_slurp_armap), \
|
||||||
CAT(NAME,_slurp_extended_name_table),\
|
CONCAT2 (NAME,_slurp_extended_name_table), \
|
||||||
CAT(NAME,_construct_extended_name_table),\
|
CONCAT2 (NAME,_construct_extended_name_table), \
|
||||||
CAT(NAME,_truncate_arname),\
|
CONCAT2 (NAME,_truncate_arname), \
|
||||||
CAT(NAME,_write_armap),\
|
CONCAT2 (NAME,_write_armap), \
|
||||||
CAT(NAME,_read_ar_hdr),\
|
CONCAT2 (NAME,_read_ar_hdr), \
|
||||||
CAT(NAME,_openr_next_archived_file),\
|
CONCAT2 (NAME,_openr_next_archived_file), \
|
||||||
CAT(NAME,_get_elt_at_index),\
|
CONCAT2 (NAME,_get_elt_at_index), \
|
||||||
CAT(NAME,_generic_stat_arch_elt),\
|
CONCAT2 (NAME,_generic_stat_arch_elt), \
|
||||||
CAT(NAME,_update_armap_timestamp)
|
CONCAT2 (NAME,_update_armap_timestamp)
|
||||||
boolean (*_bfd_slurp_armap) PARAMS ((bfd *));
|
boolean (*_bfd_slurp_armap) PARAMS ((bfd *));
|
||||||
boolean (*_bfd_slurp_extended_name_table) PARAMS ((bfd *));
|
boolean (*_bfd_slurp_extended_name_table) PARAMS ((bfd *));
|
||||||
boolean (*_bfd_construct_extended_name_table)
|
boolean (*_bfd_construct_extended_name_table)
|
||||||
|
@ -3557,17 +3546,17 @@ CAT(NAME,_update_armap_timestamp)
|
||||||
|
|
||||||
/* Entry points used for symbols. */
|
/* Entry points used for symbols. */
|
||||||
#define BFD_JUMP_TABLE_SYMBOLS(NAME) \
|
#define BFD_JUMP_TABLE_SYMBOLS(NAME) \
|
||||||
CAT(NAME,_get_symtab_upper_bound),\
|
CONCAT2 (NAME,_get_symtab_upper_bound), \
|
||||||
CAT(NAME,_get_symtab),\
|
CONCAT2 (NAME,_get_symtab), \
|
||||||
CAT(NAME,_make_empty_symbol),\
|
CONCAT2 (NAME,_make_empty_symbol), \
|
||||||
CAT(NAME,_print_symbol),\
|
CONCAT2 (NAME,_print_symbol), \
|
||||||
CAT(NAME,_get_symbol_info),\
|
CONCAT2 (NAME,_get_symbol_info), \
|
||||||
CAT(NAME,_bfd_is_local_label_name),\
|
CONCAT2 (NAME,_bfd_is_local_label_name), \
|
||||||
CAT(NAME,_get_lineno),\
|
CONCAT2 (NAME,_get_lineno), \
|
||||||
CAT(NAME,_find_nearest_line),\
|
CONCAT2 (NAME,_find_nearest_line), \
|
||||||
CAT(NAME,_bfd_make_debug_symbol),\
|
CONCAT2 (NAME,_bfd_make_debug_symbol), \
|
||||||
CAT(NAME,_read_minisymbols),\
|
CONCAT2 (NAME,_read_minisymbols), \
|
||||||
CAT(NAME,_minisymbol_to_symbol)
|
CONCAT2 (NAME,_minisymbol_to_symbol)
|
||||||
long (*_bfd_get_symtab_upper_bound) PARAMS ((bfd *));
|
long (*_bfd_get_symtab_upper_bound) PARAMS ((bfd *));
|
||||||
long (*_bfd_canonicalize_symtab) PARAMS ((bfd *,
|
long (*_bfd_canonicalize_symtab) PARAMS ((bfd *,
|
||||||
struct symbol_cache_entry **));
|
struct symbol_cache_entry **));
|
||||||
|
@ -3603,9 +3592,9 @@ CAT(NAME,_minisymbol_to_symbol)
|
||||||
|
|
||||||
/* Routines for relocs. */
|
/* Routines for relocs. */
|
||||||
#define BFD_JUMP_TABLE_RELOCS(NAME) \
|
#define BFD_JUMP_TABLE_RELOCS(NAME) \
|
||||||
CAT(NAME,_get_reloc_upper_bound),\
|
CONCAT2 (NAME,_get_reloc_upper_bound), \
|
||||||
CAT(NAME,_canonicalize_reloc),\
|
CONCAT2 (NAME,_canonicalize_reloc), \
|
||||||
CAT(NAME,_bfd_reloc_type_lookup)
|
CONCAT2 (NAME,_bfd_reloc_type_lookup)
|
||||||
long (*_get_reloc_upper_bound) PARAMS ((bfd *, sec_ptr));
|
long (*_get_reloc_upper_bound) PARAMS ((bfd *, sec_ptr));
|
||||||
long (*_bfd_canonicalize_reloc) PARAMS ((bfd *, sec_ptr, arelent **,
|
long (*_bfd_canonicalize_reloc) PARAMS ((bfd *, sec_ptr, arelent **,
|
||||||
struct symbol_cache_entry **));
|
struct symbol_cache_entry **));
|
||||||
|
@ -3615,8 +3604,8 @@ CAT(NAME,_bfd_reloc_type_lookup)
|
||||||
|
|
||||||
/* Routines used when writing an object file. */
|
/* Routines used when writing an object file. */
|
||||||
#define BFD_JUMP_TABLE_WRITE(NAME) \
|
#define BFD_JUMP_TABLE_WRITE(NAME) \
|
||||||
CAT(NAME,_set_arch_mach),\
|
CONCAT2 (NAME,_set_arch_mach), \
|
||||||
CAT(NAME,_set_section_contents)
|
CONCAT2 (NAME,_set_section_contents)
|
||||||
boolean (*_bfd_set_arch_mach) PARAMS ((bfd *, enum bfd_architecture,
|
boolean (*_bfd_set_arch_mach) PARAMS ((bfd *, enum bfd_architecture,
|
||||||
unsigned long));
|
unsigned long));
|
||||||
boolean (*_bfd_set_section_contents) PARAMS ((bfd *, sec_ptr, PTR,
|
boolean (*_bfd_set_section_contents) PARAMS ((bfd *, sec_ptr, PTR,
|
||||||
|
@ -3624,15 +3613,15 @@ CAT(NAME,_set_section_contents)
|
||||||
|
|
||||||
/* Routines used by the linker. */
|
/* Routines used by the linker. */
|
||||||
#define BFD_JUMP_TABLE_LINK(NAME) \
|
#define BFD_JUMP_TABLE_LINK(NAME) \
|
||||||
CAT(NAME,_sizeof_headers),\
|
CONCAT2 (NAME,_sizeof_headers), \
|
||||||
CAT(NAME,_bfd_get_relocated_section_contents),\
|
CONCAT2 (NAME,_bfd_get_relocated_section_contents), \
|
||||||
CAT(NAME,_bfd_relax_section),\
|
CONCAT2 (NAME,_bfd_relax_section), \
|
||||||
CAT(NAME,_bfd_link_hash_table_create),\
|
CONCAT2 (NAME,_bfd_link_hash_table_create), \
|
||||||
CAT(NAME,_bfd_link_add_symbols),\
|
CONCAT2 (NAME,_bfd_link_add_symbols), \
|
||||||
CAT(NAME,_bfd_final_link),\
|
CONCAT2 (NAME,_bfd_final_link), \
|
||||||
CAT(NAME,_bfd_link_split_section),\
|
CONCAT2 (NAME,_bfd_link_split_section), \
|
||||||
CAT(NAME,_bfd_gc_sections),\
|
CONCAT2 (NAME,_bfd_gc_sections), \
|
||||||
CAT(NAME,_bfd_merge_sections)
|
CONCAT2 (NAME,_bfd_merge_sections)
|
||||||
int (*_bfd_sizeof_headers) PARAMS ((bfd *, boolean));
|
int (*_bfd_sizeof_headers) PARAMS ((bfd *, boolean));
|
||||||
bfd_byte *(*_bfd_get_relocated_section_contents)
|
bfd_byte *(*_bfd_get_relocated_section_contents)
|
||||||
PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *,
|
PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *,
|
||||||
|
@ -3663,10 +3652,10 @@ CAT(NAME,_bfd_merge_sections)
|
||||||
|
|
||||||
/* Routines to handle dynamic symbols and relocs. */
|
/* Routines to handle dynamic symbols and relocs. */
|
||||||
#define BFD_JUMP_TABLE_DYNAMIC(NAME) \
|
#define BFD_JUMP_TABLE_DYNAMIC(NAME) \
|
||||||
CAT(NAME,_get_dynamic_symtab_upper_bound),\
|
CONCAT2 (NAME,_get_dynamic_symtab_upper_bound), \
|
||||||
CAT(NAME,_canonicalize_dynamic_symtab),\
|
CONCAT2 (NAME,_canonicalize_dynamic_symtab), \
|
||||||
CAT(NAME,_get_dynamic_reloc_upper_bound),\
|
CONCAT2 (NAME,_get_dynamic_reloc_upper_bound), \
|
||||||
CAT(NAME,_canonicalize_dynamic_reloc)
|
CONCAT2 (NAME,_canonicalize_dynamic_reloc)
|
||||||
/* Get the amount of memory required to hold the dynamic symbols. */
|
/* Get the amount of memory required to hold the dynamic symbols. */
|
||||||
long (*_bfd_get_dynamic_symtab_upper_bound) PARAMS ((bfd *));
|
long (*_bfd_get_dynamic_symtab_upper_bound) PARAMS ((bfd *));
|
||||||
/* Read in the dynamic symbols. */
|
/* Read in the dynamic symbols. */
|
||||||
|
|
478
bfd/configure
vendored
478
bfd/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -8,6 +8,26 @@ AC_CANONICAL_SYSTEM
|
||||||
AC_ISC_POSIX
|
AC_ISC_POSIX
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE(bfd, 2.11.92)
|
AM_INIT_AUTOMAKE(bfd, 2.11.92)
|
||||||
|
# Uncomment the next line to remove the date from the reported bfd version
|
||||||
|
#is_release=y
|
||||||
|
|
||||||
|
changequote(,)dnl
|
||||||
|
bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
|
||||||
|
changequote([,])dnl
|
||||||
|
|
||||||
|
bfd_version_string="\"${VERSION}\""
|
||||||
|
bfd_version_date=`sed -e 's/.*DATE //' < ${srcdir}/version.h`
|
||||||
|
if test x${is_release} = x; then
|
||||||
|
dnl Sad, but we can't use XSTRING here to pick up the date from version.h
|
||||||
|
dnl because traditional C doesn't allow it.
|
||||||
|
bfd_version_string="\"${VERSION} ${bfd_version_date}\""
|
||||||
|
fi
|
||||||
|
dnl Since we need to edit bfd-in3.h to get the date for bfd_version_string,
|
||||||
|
dnl we may as well substitute for bfd_version_date too. That way we don't
|
||||||
|
dnl need to #include version.h
|
||||||
|
AC_SUBST(bfd_version)
|
||||||
|
AC_SUBST(bfd_version_date)
|
||||||
|
AC_SUBST(bfd_version_string)
|
||||||
|
|
||||||
dnl These must be called before AM_PROG_LIBTOOL, because it may want
|
dnl These must be called before AM_PROG_LIBTOOL, because it may want
|
||||||
dnl to call AC_CHECK_PROG.
|
dnl to call AC_CHECK_PROG.
|
||||||
|
@ -751,6 +771,6 @@ case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
rm -f doc/config.status
|
rm -f doc/config.status
|
||||||
AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in,
|
AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h:version.h po/Makefile.in:po/Make-in,
|
||||||
[sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile])
|
[sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile])
|
||||||
|
|
||||||
|
|
10
bfd/demo64.c
10
bfd/demo64.c
|
@ -1,5 +1,6 @@
|
||||||
/* BFD backend for demonstration 64-bit a.out binaries.
|
/* BFD backend for demonstration 64-bit a.out binaries.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
Copyright 1990, 1991, 1992, 1993, 1994, 2001
|
||||||
|
Free Software Foundation, Inc.
|
||||||
Written by Cygnus Support.
|
Written by Cygnus Support.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -19,6 +20,11 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#define ARCH_SIZE 64
|
#define ARCH_SIZE 64
|
||||||
#define MY(OP) CAT(demo_64_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (demo_64_,OP)
|
||||||
|
|
||||||
#define TARGETNAME "demo64"
|
#define TARGETNAME "demo64"
|
||||||
#include "aoutf1.h"
|
#include "aoutf1.h"
|
||||||
|
|
|
@ -33,17 +33,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define NUM_SHDR_ENTRIES(shdr) ((shdr)->sh_size / (shdr)->sh_entsize)
|
#define NUM_SHDR_ENTRIES(shdr) ((shdr)->sh_size / (shdr)->sh_entsize)
|
||||||
|
|
||||||
/* If size isn't specified as 64 or 32, NAME macro should fail. */
|
/* If size isn't specified as 64 or 32, NAME macro should fail. */
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
#ifndef NAME
|
#ifndef NAME
|
||||||
#if ARCH_SIZE==64
|
#if ARCH_SIZE==64
|
||||||
#define NAME(x,y) CAT4(x,64,_,y)
|
#define NAME(x,y) CONCAT4 (x,64,_,y)
|
||||||
#endif
|
#endif
|
||||||
#if ARCH_SIZE==32
|
#if ARCH_SIZE==32
|
||||||
#define NAME(x,y) CAT4(x,32,_,y)
|
#define NAME(x,y) CONCAT4 (x,32,_,y)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NAME
|
#ifndef NAME
|
||||||
#define NAME(x,y) CAT4(x,NOSIZE,_,y)
|
#define NAME(x,y) CONCAT4 (x,NOSIZE,_,y)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ElfNAME(X) NAME(Elf,X)
|
#define ElfNAME(X) NAME(Elf,X)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Generate parameters for an a.out system.
|
/* Generate parameters for an a.out system.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -87,9 +87,12 @@ main (argc, argv)
|
||||||
fprintf (stderr, _(" fix DEFAULT_ARCH in the output file yourself\n"));
|
fprintf (stderr, _(" fix DEFAULT_ARCH in the output file yourself\n"));
|
||||||
arch = "unknown";
|
arch = "unknown";
|
||||||
}
|
}
|
||||||
printf("#define DEFAULT_ARCH bfd_arch_%s\n", arch);
|
printf("#define DEFAULT_ARCH bfd_arch_%s\n\n", arch);
|
||||||
|
|
||||||
printf("\n#define MY(OP) CAT(%s_,OP)\n", target);
|
printf("/* Do not \"beautify\" the CONCAT* macro args. Traditional C will not");
|
||||||
|
printf(" remove whitespace added here, and thus will fail to concatenate");
|
||||||
|
printf(" the tokens. */");
|
||||||
|
printf("\n#define MY(OP) CONCAT2 (%s_,OP)\n\n", target);
|
||||||
printf("#define TARGETNAME \"a.out-%s\"\n\n", target);
|
printf("#define TARGETNAME \"a.out-%s\"\n\n", target);
|
||||||
|
|
||||||
printf("#include \"bfd.h\"\n");
|
printf("#include \"bfd.h\"\n");
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* BFD backend for local host's a.out binaries
|
/* BFD backend for local host's a.out binaries
|
||||||
Copyright 1990, 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
|
Copyright 1990, 1991, 1992, 1994, 1995, 2001
|
||||||
|
Free Software Foundation, Inc.
|
||||||
Written by Cygnus Support. Probably John Gilmore's fault.
|
Written by Cygnus Support. Probably John Gilmore's fault.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -77,7 +78,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#endif
|
#endif
|
||||||
#endif /* HOST_MACHINE_ARCH */
|
#endif /* HOST_MACHINE_ARCH */
|
||||||
|
|
||||||
#define MY(OP) CAT(host_aout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (host_aout_,OP)
|
||||||
#define TARGETNAME "a.out"
|
#define TARGETNAME "a.out"
|
||||||
|
|
||||||
#include "aout-target.h"
|
#include "aout-target.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for HP 9000/300 (68000-based) machines running BSD Unix.
|
/* BFD back-end for HP 9000/300 (68000-based) machines running BSD Unix.
|
||||||
Copyright 1992, 1994, 1995 Free Software Foundation, Inc.
|
Copyright 1992, 1994, 1995, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -27,7 +27,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
||||||
#define DEFAULT_ARCH bfd_arch_m68k
|
#define DEFAULT_ARCH bfd_arch_m68k
|
||||||
|
|
||||||
#define MY(OP) CAT(hp300bsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (hp300bsd_,OP)
|
||||||
#define TARGETNAME "a.out-hp300bsd"
|
#define TARGETNAME "a.out-hp300bsd"
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
|
|
@ -100,7 +100,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
This should also be fixed. */
|
This should also be fixed. */
|
||||||
|
|
||||||
#define TARGETNAME "a.out-hp300hpux"
|
#define TARGETNAME "a.out-hp300hpux"
|
||||||
#define MY(OP) CAT(hp300hpux_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (hp300hpux_,OP)
|
||||||
|
|
||||||
#define external_exec hp300hpux_exec_bytes
|
#define external_exec hp300hpux_exec_bytes
|
||||||
#define external_nlist hp300hpux_nlist_bytes
|
#define external_nlist hp300hpux_nlist_bytes
|
||||||
|
@ -123,7 +127,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
/* provide overrides for routines in this file */
|
/* provide overrides for routines in this file */
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
/* these don't use MY because that causes problems within JUMP_TABLE
|
/* these don't use MY because that causes problems within JUMP_TABLE
|
||||||
(CAT winds up being expanded recursively, which ANSI C compilers
|
(CONCAT2 winds up being expanded recursively, which ANSI C compilers
|
||||||
will not do). */
|
will not do). */
|
||||||
#define MY_get_symtab hp300hpux_get_symtab
|
#define MY_get_symtab hp300hpux_get_symtab
|
||||||
#define MY_get_symtab_upper_bound hp300hpux_get_symtab_upper_bound
|
#define MY_get_symtab_upper_bound hp300hpux_get_symtab_upper_bound
|
||||||
|
@ -181,7 +185,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define HP_RLENGTH_LONG 0x02
|
#define HP_RLENGTH_LONG 0x02
|
||||||
#define HP_RLENGTH_ALIGN 0x03
|
#define HP_RLENGTH_ALIGN 0x03
|
||||||
|
|
||||||
#define NAME(x,y) CAT3(hp300hpux,_32_,y)
|
#define NAME(x,y) CONCAT3 (hp300hpux,_32_,y)
|
||||||
#define ARCH_SIZE 32
|
#define ARCH_SIZE 32
|
||||||
|
|
||||||
/* aoutx.h requires definitions for BMAGIC and QMAGIC. */
|
/* aoutx.h requires definitions for BMAGIC and QMAGIC. */
|
||||||
|
|
|
@ -41,7 +41,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE 0x400000
|
#define SEGMENT_SIZE 0x400000
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
|
|
||||||
#define MY(OP) CAT(i386aout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386aout_,OP)
|
||||||
#define TARGETNAME "a.out-i386"
|
#define TARGETNAME "a.out-i386"
|
||||||
#define NO_WRITE_HEADER_KLUDGE 1
|
#define NO_WRITE_HEADER_KLUDGE 1
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* BFD back-end for i386 a.out binaries under BSD.
|
/* BFD back-end for i386 a.out binaries under BSD.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
Copyright 1990, 1991, 1992, 1993, 1994, 2001
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -35,7 +36,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
#define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN)
|
#define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN)
|
||||||
|
|
||||||
#define MY(OP) CAT(i386bsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386bsd_,OP)
|
||||||
#define TARGETNAME "a.out-i386-bsd"
|
#define TARGETNAME "a.out-i386-bsd"
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
|
|
@ -31,9 +31,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
#define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN)
|
#define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN)
|
||||||
|
|
||||||
#define MY(OP) CAT(i386dynix_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386dynix_,OP)
|
||||||
#define TARGETNAME "a.out-i386-dynix"
|
#define TARGETNAME "a.out-i386-dynix"
|
||||||
#define NAME(x,y) CAT3(i386dynix,_32_,y)
|
#define NAME(x,y) CONCAT3 (i386dynix,_32_,y)
|
||||||
#define ARCH_SIZE 32
|
#define ARCH_SIZE 32
|
||||||
#define NAME_swap_exec_header_in NAME(i386dynix_32_,swap_exec_header_in)
|
#define NAME_swap_exec_header_in NAME(i386dynix_32_,swap_exec_header_in)
|
||||||
#define MY_get_section_contents aout_32_get_section_contents
|
#define MY_get_section_contents aout_32_get_section_contents
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for FreeBSD/386 a.out-ish binaries.
|
/* BFD back-end for FreeBSD/386 a.out-ish binaries.
|
||||||
Copyright 1990, 1991, 1992, 1996 Free Software Foundation, Inc.
|
Copyright 1990, 1991, 1992, 1996, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -26,7 +26,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
#define MACHTYPE_OK(mtype) ((mtype) == M_386_NETBSD || (mtype) == M_UNKNOWN)
|
#define MACHTYPE_OK(mtype) ((mtype) == M_386_NETBSD || (mtype) == M_UNKNOWN)
|
||||||
|
|
||||||
#define MY(OP) CAT(i386freebsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386freebsd_,OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-i386-freebsd"
|
#define TARGETNAME "a.out-i386-freebsd"
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#include "libaout.h" /* BFD a.out internal data structures */
|
#include "libaout.h" /* BFD a.out internal data structures */
|
||||||
|
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
#define MY(OP) CAT(i386linux_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386linux_,OP)
|
||||||
#define TARGETNAME "a.out-i386-linux"
|
#define TARGETNAME "a.out-i386-linux"
|
||||||
|
|
||||||
extern const bfd_target MY(vec);
|
extern const bfd_target MY(vec);
|
||||||
|
|
|
@ -26,7 +26,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
|
|
||||||
#define MY(OP) CAT(i386lynx_aout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386lynx_aout_,OP)
|
||||||
#define TARGETNAME "a.out-i386-lynx"
|
#define TARGETNAME "a.out-i386-lynx"
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
|
|
@ -43,7 +43,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#include "libaout.h" /* BFD a.out internal data structures */
|
#include "libaout.h" /* BFD a.out internal data structures */
|
||||||
|
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
#define MY(OP) CAT(i386mach3_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386mach3_,OP)
|
||||||
#define TARGETNAME "a.out-mach3"
|
#define TARGETNAME "a.out-mach3"
|
||||||
|
|
||||||
static boolean MY (set_sizes) PARAMS ((bfd *));
|
static boolean MY (set_sizes) PARAMS ((bfd *));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for NetBSD/386 a.out-ish binaries.
|
/* BFD back-end for NetBSD/386 a.out-ish binaries.
|
||||||
Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998
|
Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -27,7 +27,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_i386
|
#define DEFAULT_ARCH bfd_arch_i386
|
||||||
#define DEFAULT_MID M_386_NETBSD
|
#define DEFAULT_MID M_386_NETBSD
|
||||||
|
|
||||||
#define MY(OP) CAT(i386netbsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (i386netbsd_,OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-i386-netbsd"
|
#define TARGETNAME "a.out-i386-netbsd"
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
/* Parameterize the a.out code based on whether it is being built
|
/* Parameterize the a.out code based on whether it is being built
|
||||||
for a 32-bit architecture or a 64-bit architecture. */
|
for a 32-bit architecture or a 64-bit architecture. */
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
#if ARCH_SIZE==64
|
#if ARCH_SIZE==64
|
||||||
#define GET_WORD H_GET_64
|
#define GET_WORD H_GET_64
|
||||||
#define GET_SWORD H_GET_S64
|
#define GET_SWORD H_GET_S64
|
||||||
|
@ -85,9 +88,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define PUT_WORD H_PUT_64
|
#define PUT_WORD H_PUT_64
|
||||||
#define PUT_MAGIC H_PUT_32
|
#define PUT_MAGIC H_PUT_32
|
||||||
#ifndef NAME
|
#ifndef NAME
|
||||||
#define NAME(x,y) CAT3(x,_64_,y)
|
#define NAME(x,y) CONCAT3 (x,_64_,y)
|
||||||
#endif
|
#endif
|
||||||
#define JNAME(x) CAT(x,_64)
|
#define JNAME(x) CONCAT2 (x,_64)
|
||||||
#define BYTES_IN_WORD 8
|
#define BYTES_IN_WORD 8
|
||||||
#else
|
#else
|
||||||
#if ARCH_SIZE==16
|
#if ARCH_SIZE==16
|
||||||
|
@ -97,9 +100,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define PUT_WORD H_PUT_16
|
#define PUT_WORD H_PUT_16
|
||||||
#define PUT_MAGIC H_PUT_16
|
#define PUT_MAGIC H_PUT_16
|
||||||
#ifndef NAME
|
#ifndef NAME
|
||||||
#define NAME(x,y) CAT3(x,_16_,y)
|
#define NAME(x,y) CONCAT3 (x,_16_,y)
|
||||||
#endif
|
#endif
|
||||||
#define JNAME(x) CAT(x,_16)
|
#define JNAME(x) CONCAT2 (x,_16)
|
||||||
#define BYTES_IN_WORD 2
|
#define BYTES_IN_WORD 2
|
||||||
#else /* ARCH_SIZE == 32 */
|
#else /* ARCH_SIZE == 32 */
|
||||||
#define GET_WORD H_GET_32
|
#define GET_WORD H_GET_32
|
||||||
|
@ -108,9 +111,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define PUT_WORD H_PUT_32
|
#define PUT_WORD H_PUT_32
|
||||||
#define PUT_MAGIC H_PUT_32
|
#define PUT_MAGIC H_PUT_32
|
||||||
#ifndef NAME
|
#ifndef NAME
|
||||||
#define NAME(x,y) CAT3(x,_32_,y)
|
#define NAME(x,y) CONCAT3 (x,_32_,y)
|
||||||
#endif
|
#endif
|
||||||
#define JNAME(x) CAT(x,_32)
|
#define JNAME(x) CONCAT2 (x,_32)
|
||||||
#define BYTES_IN_WORD 4
|
#define BYTES_IN_WORD 4
|
||||||
#endif /* ARCH_SIZE==32 */
|
#endif /* ARCH_SIZE==32 */
|
||||||
#endif /* ARCH_SIZE==64 */
|
#endif /* ARCH_SIZE==64 */
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* BFD back-end for NetBSD/m68k a.out-ish binaries.
|
/* BFD back-end for NetBSD/m68k a.out-ish binaries.
|
||||||
Copyright 1990, 1991, 1992, 1995, 1998 Free Software Foundation, Inc.
|
Copyright 1990, 1991, 1992, 1995, 1998, 2001
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -25,7 +26,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_m68k
|
#define DEFAULT_ARCH bfd_arch_m68k
|
||||||
#define DEFAULT_MID M_68K4K_NETBSD
|
#define DEFAULT_MID M_68K4K_NETBSD
|
||||||
|
|
||||||
#define MY(OP) CAT(m68k4knetbsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (m68k4knetbsd_,OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-m68k4k-netbsd"
|
#define TARGETNAME "a.out-m68k4k-netbsd"
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#define TARGET_IS_BIG_ENDIAN_P
|
#define TARGET_IS_BIG_ENDIAN_P
|
||||||
#define DEFAULT_ARCH bfd_arch_m68k
|
#define DEFAULT_ARCH bfd_arch_m68k
|
||||||
#define MY(OP) CAT(m68klinux_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (m68klinux_,OP)
|
||||||
#define TARGETNAME "a.out-m68k-linux"
|
#define TARGETNAME "a.out-m68k-linux"
|
||||||
|
|
||||||
extern const bfd_target MY(vec);
|
extern const bfd_target MY(vec);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for m68k binaries under LynxOS.
|
/* BFD back-end for m68k binaries under LynxOS.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -26,7 +26,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
||||||
#define DEFAULT_ARCH bfd_arch_m68k
|
#define DEFAULT_ARCH bfd_arch_m68k
|
||||||
|
|
||||||
#define MY(OP) CAT(m68klynx_aout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (m68klynx_aout_,OP)
|
||||||
#define TARGETNAME "a.out-m68k-lynx"
|
#define TARGETNAME "a.out-m68k-lynx"
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for NetBSD/m68k a.out-ish binaries.
|
/* BFD back-end for NetBSD/m68k a.out-ish binaries.
|
||||||
Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000
|
Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -28,7 +28,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_m68k
|
#define DEFAULT_ARCH bfd_arch_m68k
|
||||||
#define DEFAULT_MID M_68K_NETBSD
|
#define DEFAULT_MID M_68K_NETBSD
|
||||||
|
|
||||||
#define MY(OP) CAT(m68knetbsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (m68knetbsd_,OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-m68k-netbsd"
|
#define TARGETNAME "a.out-m68k-netbsd"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* BFD back-end for Motorola m88k a.out (Mach 3) binaries.
|
/* BFD back-end for Motorola m88k a.out (Mach 3) binaries.
|
||||||
Copyright 1990, 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
|
Copyright 1990, 1991, 1993, 1994, 1995, 2001
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -32,7 +33,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#include "libaout.h"
|
#include "libaout.h"
|
||||||
|
|
||||||
#define DEFAULT_ARCH bfd_arch_m88k
|
#define DEFAULT_ARCH bfd_arch_m88k
|
||||||
#define MY(OP) CAT(m88kmach3_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (m88kmach3_,OP)
|
||||||
#define TARGETNAME "a.out-m88k-mach3"
|
#define TARGETNAME "a.out-m88k-mach3"
|
||||||
|
|
||||||
#include "aout-target.h"
|
#include "aout-target.h"
|
||||||
|
|
|
@ -36,7 +36,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|| (mtype) == M_MIPS1 || (mtype) == M_MIPS2)
|
|| (mtype) == M_MIPS1 || (mtype) == M_MIPS2)
|
||||||
#define MY_symbol_leading_char '\0'
|
#define MY_symbol_leading_char '\0'
|
||||||
|
|
||||||
#define MY(OP) CAT(mipsbsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (mipsbsd_,OP)
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
|
@ -52,7 +55,7 @@ static void MY(choose_reloc_size) PARAMS ((bfd *abfd));
|
||||||
#define MY_write_object_contents MY(write_object_contents)
|
#define MY_write_object_contents MY(write_object_contents)
|
||||||
static boolean MY(write_object_contents) PARAMS ((bfd *abfd));
|
static boolean MY(write_object_contents) PARAMS ((bfd *abfd));
|
||||||
|
|
||||||
/* We can't use MY(x) here because it leads to a recursive call to CAT
|
/* We can't use MY(x) here because it leads to a recursive call to CONCAT2
|
||||||
when expanded inside JUMP_TABLE. */
|
when expanded inside JUMP_TABLE. */
|
||||||
#define MY_bfd_reloc_type_lookup mipsbsd_reloc_howto_type_lookup
|
#define MY_bfd_reloc_type_lookup mipsbsd_reloc_howto_type_lookup
|
||||||
#define MY_canonicalize_reloc mipsbsd_canonicalize_reloc
|
#define MY_canonicalize_reloc mipsbsd_canonicalize_reloc
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* BFD back-end for NewsOS3 (Sony, 68k) binaries.
|
/* BFD back-end for NewsOS3 (Sony, 68k) binaries.
|
||||||
Copyright 1990, 1991, 1994, 1995, 2000 Free Software Foundation, Inc.
|
Copyright 1990, 1991, 1994, 1995, 2000, 2001
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -21,7 +22,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
||||||
#define TEXT_START_ADDR 0
|
#define TEXT_START_ADDR 0
|
||||||
#define BYTES_IN_WORD 4
|
#define BYTES_IN_WORD 4
|
||||||
#define MY(OP) CAT(newsos3_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (newsos3_,OP)
|
||||||
#define TARGETNAME "a.out-newsos3"
|
#define TARGETNAME "a.out-newsos3"
|
||||||
#define ENTRY_CAN_BE_ZERO
|
#define ENTRY_CAN_BE_ZERO
|
||||||
#define N_SHARED_LIB(x) 0 /* Avoids warning when compiled with -Wall. */
|
#define N_SHARED_LIB(x) 0 /* Avoids warning when compiled with -Wall. */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for NetBSD/ns32k a.out-ish binaries.
|
/* BFD back-end for NetBSD/ns32k a.out-ish binaries.
|
||||||
Copyright 1990, 1991, 1992, 1994, 1995, 1998, 2000
|
Copyright 1990, 1991, 1992, 1994, 1995, 1998, 2000, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -27,9 +27,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_ns32k
|
#define DEFAULT_ARCH bfd_arch_ns32k
|
||||||
#define DEFAULT_MID M_532_NETBSD
|
#define DEFAULT_MID M_532_NETBSD
|
||||||
|
|
||||||
#define MY(OP) CAT(pc532netbsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (pc532netbsd_,OP)
|
||||||
|
|
||||||
#define NAME(x,y) CAT3(ns32kaout,_32_,y)
|
#define NAME(x,y) CONCAT3 (ns32kaout,_32_,y)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-ns32k-netbsd"
|
#define TARGETNAME "a.out-ns32k-netbsd"
|
||||||
|
|
|
@ -50,10 +50,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
||||||
#define DEFAULT_ARCH bfd_arch_ns32k
|
#define DEFAULT_ARCH bfd_arch_ns32k
|
||||||
|
|
||||||
#define MY(OP) CAT(pc532machaout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (pc532machaout_,OP)
|
||||||
|
|
||||||
/* Must be the same as aout-ns32k.c */
|
/* Must be the same as aout-ns32k.c */
|
||||||
#define NAME(x,y) CAT3(ns32kaout,_32_,y)
|
#define NAME(x,y) CONCAT3 (ns32kaout,_32_,y)
|
||||||
|
|
||||||
#define TARGETNAME "a.out-pc532-mach"
|
#define TARGETNAME "a.out-pc532-mach"
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,11 @@
|
||||||
#define DEFAULT_ARCH bfd_arch_pdp11
|
#define DEFAULT_ARCH bfd_arch_pdp11
|
||||||
#define DEFAULT_MID M_PDP11
|
#define DEFAULT_MID M_PDP11
|
||||||
|
|
||||||
#define MY(OP) CAT(pdp11_aout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (pdp11_aout_,OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-pdp11"
|
#define TARGETNAME "a.out-pdp11"
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
#define SEGMENT_SIZE TARGET_PAGE_SIZE
|
||||||
#define DEFAULT_ARCH bfd_arch_arm
|
#define DEFAULT_ARCH bfd_arch_arm
|
||||||
|
|
||||||
#define MY(OP) CAT(riscix_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (riscix_,OP)
|
||||||
#define TARGETNAME "a.out-riscix"
|
#define TARGETNAME "a.out-riscix"
|
||||||
#define N_BADMAG(x) ((((x).a_info & ~007200) != ZMAGIC) && \
|
#define N_BADMAG(x) ((((x).a_info & ~007200) != ZMAGIC) && \
|
||||||
(((x).a_info & ~006000) != OMAGIC) && \
|
(((x).a_info & ~006000) != OMAGIC) && \
|
||||||
|
|
|
@ -37,7 +37,10 @@ USA. */
|
||||||
#include "libaout.h" /* BFD a.out internal data structures */
|
#include "libaout.h" /* BFD a.out internal data structures */
|
||||||
|
|
||||||
#define DEFAULT_ARCH bfd_arch_sparc
|
#define DEFAULT_ARCH bfd_arch_sparc
|
||||||
#define MY(OP) CAT(sparclinux_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (sparclinux_,OP)
|
||||||
#define TARGETNAME "a.out-sparc-linux"
|
#define TARGETNAME "a.out-sparc-linux"
|
||||||
|
|
||||||
extern const bfd_target MY(vec);
|
extern const bfd_target MY(vec);
|
||||||
|
|
|
@ -29,7 +29,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MY(OP) CAT (sparclynx_aout_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (sparclynx_aout_,OP)
|
||||||
#define TARGETNAME "a.out-sparc-lynx"
|
#define TARGETNAME "a.out-sparc-lynx"
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for NetBSD/sparc a.out-ish binaries.
|
/* BFD back-end for NetBSD/sparc a.out-ish binaries.
|
||||||
Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000
|
Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -28,7 +28,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_sparc
|
#define DEFAULT_ARCH bfd_arch_sparc
|
||||||
#define DEFAULT_MID M_SPARC_NETBSD
|
#define DEFAULT_MID M_SPARC_NETBSD
|
||||||
|
|
||||||
#define MY(OP) CAT(sparcnetbsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (sparcnetbsd_,OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-sparc-netbsd"
|
#define TARGETNAME "a.out-sparc-netbsd"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,11 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#define TARGETNAME "a.out-sunos-big"
|
#define TARGETNAME "a.out-sunos-big"
|
||||||
#define MY(OP) CAT(sunos_big_,OP)
|
|
||||||
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (sunos_big_,OP)
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "bfdlink.h"
|
#include "bfdlink.h"
|
||||||
|
|
109
bfd/targets.c
109
bfd/targets.c
|
@ -250,12 +250,15 @@ BFD_JUMP_TABLE macros.
|
||||||
|
|
||||||
.
|
.
|
||||||
. {* Generic entry points. *}
|
. {* Generic entry points. *}
|
||||||
|
Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens.
|
||||||
.#define BFD_JUMP_TABLE_GENERIC(NAME) \
|
.#define BFD_JUMP_TABLE_GENERIC(NAME) \
|
||||||
.CAT(NAME,_close_and_cleanup),\
|
.CONCAT2 (NAME,_close_and_cleanup), \
|
||||||
.CAT(NAME,_bfd_free_cached_info),\
|
.CONCAT2 (NAME,_bfd_free_cached_info), \
|
||||||
.CAT(NAME,_new_section_hook),\
|
.CONCAT2 (NAME,_new_section_hook), \
|
||||||
.CAT(NAME,_get_section_contents),\
|
.CONCAT2 (NAME,_get_section_contents), \
|
||||||
.CAT(NAME,_get_section_contents_in_window)
|
.CONCAT2 (NAME,_get_section_contents_in_window)
|
||||||
.
|
.
|
||||||
. {* Called when the BFD is being closed to do any necessary cleanup. *}
|
. {* Called when the BFD is being closed to do any necessary cleanup. *}
|
||||||
. boolean (*_close_and_cleanup) PARAMS ((bfd *));
|
. boolean (*_close_and_cleanup) PARAMS ((bfd *));
|
||||||
|
@ -271,12 +274,12 @@ BFD_JUMP_TABLE macros.
|
||||||
.
|
.
|
||||||
. {* Entry points to copy private data. *}
|
. {* Entry points to copy private data. *}
|
||||||
.#define BFD_JUMP_TABLE_COPY(NAME) \
|
.#define BFD_JUMP_TABLE_COPY(NAME) \
|
||||||
.CAT(NAME,_bfd_copy_private_bfd_data),\
|
.CONCAT2 (NAME,_bfd_copy_private_bfd_data), \
|
||||||
.CAT(NAME,_bfd_merge_private_bfd_data),\
|
.CONCAT2 (NAME,_bfd_merge_private_bfd_data), \
|
||||||
.CAT(NAME,_bfd_copy_private_section_data),\
|
.CONCAT2 (NAME,_bfd_copy_private_section_data), \
|
||||||
.CAT(NAME,_bfd_copy_private_symbol_data),\
|
.CONCAT2 (NAME,_bfd_copy_private_symbol_data), \
|
||||||
.CAT(NAME,_bfd_set_private_flags),\
|
.CONCAT2 (NAME,_bfd_set_private_flags), \
|
||||||
.CAT(NAME,_bfd_print_private_bfd_data)\
|
.CONCAT2 (NAME,_bfd_print_private_bfd_data) \
|
||||||
. {* Called to copy BFD general private data from one object file
|
. {* Called to copy BFD general private data from one object file
|
||||||
. to another. *}
|
. to another. *}
|
||||||
. boolean (*_bfd_copy_private_bfd_data) PARAMS ((bfd *, bfd *));
|
. boolean (*_bfd_copy_private_bfd_data) PARAMS ((bfd *, bfd *));
|
||||||
|
@ -299,25 +302,25 @@ BFD_JUMP_TABLE macros.
|
||||||
.
|
.
|
||||||
. {* Core file entry points. *}
|
. {* Core file entry points. *}
|
||||||
.#define BFD_JUMP_TABLE_CORE(NAME) \
|
.#define BFD_JUMP_TABLE_CORE(NAME) \
|
||||||
.CAT(NAME,_core_file_failing_command),\
|
.CONCAT2 (NAME,_core_file_failing_command), \
|
||||||
.CAT(NAME,_core_file_failing_signal),\
|
.CONCAT2 (NAME,_core_file_failing_signal), \
|
||||||
.CAT(NAME,_core_file_matches_executable_p)
|
.CONCAT2 (NAME,_core_file_matches_executable_p)
|
||||||
. char * (*_core_file_failing_command) PARAMS ((bfd *));
|
. char * (*_core_file_failing_command) PARAMS ((bfd *));
|
||||||
. int (*_core_file_failing_signal) PARAMS ((bfd *));
|
. int (*_core_file_failing_signal) PARAMS ((bfd *));
|
||||||
. boolean (*_core_file_matches_executable_p) PARAMS ((bfd *, bfd *));
|
. boolean (*_core_file_matches_executable_p) PARAMS ((bfd *, bfd *));
|
||||||
.
|
.
|
||||||
. {* Archive entry points. *}
|
. {* Archive entry points. *}
|
||||||
.#define BFD_JUMP_TABLE_ARCHIVE(NAME) \
|
.#define BFD_JUMP_TABLE_ARCHIVE(NAME) \
|
||||||
.CAT(NAME,_slurp_armap),\
|
.CONCAT2 (NAME,_slurp_armap), \
|
||||||
.CAT(NAME,_slurp_extended_name_table),\
|
.CONCAT2 (NAME,_slurp_extended_name_table), \
|
||||||
.CAT(NAME,_construct_extended_name_table),\
|
.CONCAT2 (NAME,_construct_extended_name_table), \
|
||||||
.CAT(NAME,_truncate_arname),\
|
.CONCAT2 (NAME,_truncate_arname), \
|
||||||
.CAT(NAME,_write_armap),\
|
.CONCAT2 (NAME,_write_armap), \
|
||||||
.CAT(NAME,_read_ar_hdr),\
|
.CONCAT2 (NAME,_read_ar_hdr), \
|
||||||
.CAT(NAME,_openr_next_archived_file),\
|
.CONCAT2 (NAME,_openr_next_archived_file), \
|
||||||
.CAT(NAME,_get_elt_at_index),\
|
.CONCAT2 (NAME,_get_elt_at_index), \
|
||||||
.CAT(NAME,_generic_stat_arch_elt),\
|
.CONCAT2 (NAME,_generic_stat_arch_elt), \
|
||||||
.CAT(NAME,_update_armap_timestamp)
|
.CONCAT2 (NAME,_update_armap_timestamp)
|
||||||
. boolean (*_bfd_slurp_armap) PARAMS ((bfd *));
|
. boolean (*_bfd_slurp_armap) PARAMS ((bfd *));
|
||||||
. boolean (*_bfd_slurp_extended_name_table) PARAMS ((bfd *));
|
. boolean (*_bfd_slurp_extended_name_table) PARAMS ((bfd *));
|
||||||
. boolean (*_bfd_construct_extended_name_table)
|
. boolean (*_bfd_construct_extended_name_table)
|
||||||
|
@ -334,17 +337,17 @@ BFD_JUMP_TABLE macros.
|
||||||
.
|
.
|
||||||
. {* Entry points used for symbols. *}
|
. {* Entry points used for symbols. *}
|
||||||
.#define BFD_JUMP_TABLE_SYMBOLS(NAME) \
|
.#define BFD_JUMP_TABLE_SYMBOLS(NAME) \
|
||||||
.CAT(NAME,_get_symtab_upper_bound),\
|
.CONCAT2 (NAME,_get_symtab_upper_bound), \
|
||||||
.CAT(NAME,_get_symtab),\
|
.CONCAT2 (NAME,_get_symtab), \
|
||||||
.CAT(NAME,_make_empty_symbol),\
|
.CONCAT2 (NAME,_make_empty_symbol), \
|
||||||
.CAT(NAME,_print_symbol),\
|
.CONCAT2 (NAME,_print_symbol), \
|
||||||
.CAT(NAME,_get_symbol_info),\
|
.CONCAT2 (NAME,_get_symbol_info), \
|
||||||
.CAT(NAME,_bfd_is_local_label_name),\
|
.CONCAT2 (NAME,_bfd_is_local_label_name), \
|
||||||
.CAT(NAME,_get_lineno),\
|
.CONCAT2 (NAME,_get_lineno), \
|
||||||
.CAT(NAME,_find_nearest_line),\
|
.CONCAT2 (NAME,_find_nearest_line), \
|
||||||
.CAT(NAME,_bfd_make_debug_symbol),\
|
.CONCAT2 (NAME,_bfd_make_debug_symbol), \
|
||||||
.CAT(NAME,_read_minisymbols),\
|
.CONCAT2 (NAME,_read_minisymbols), \
|
||||||
.CAT(NAME,_minisymbol_to_symbol)
|
.CONCAT2 (NAME,_minisymbol_to_symbol)
|
||||||
. long (*_bfd_get_symtab_upper_bound) PARAMS ((bfd *));
|
. long (*_bfd_get_symtab_upper_bound) PARAMS ((bfd *));
|
||||||
. long (*_bfd_canonicalize_symtab) PARAMS ((bfd *,
|
. long (*_bfd_canonicalize_symtab) PARAMS ((bfd *,
|
||||||
. struct symbol_cache_entry **));
|
. struct symbol_cache_entry **));
|
||||||
|
@ -380,9 +383,9 @@ BFD_JUMP_TABLE macros.
|
||||||
.
|
.
|
||||||
. {* Routines for relocs. *}
|
. {* Routines for relocs. *}
|
||||||
.#define BFD_JUMP_TABLE_RELOCS(NAME) \
|
.#define BFD_JUMP_TABLE_RELOCS(NAME) \
|
||||||
.CAT(NAME,_get_reloc_upper_bound),\
|
.CONCAT2 (NAME,_get_reloc_upper_bound), \
|
||||||
.CAT(NAME,_canonicalize_reloc),\
|
.CONCAT2 (NAME,_canonicalize_reloc), \
|
||||||
.CAT(NAME,_bfd_reloc_type_lookup)
|
.CONCAT2 (NAME,_bfd_reloc_type_lookup)
|
||||||
. long (*_get_reloc_upper_bound) PARAMS ((bfd *, sec_ptr));
|
. long (*_get_reloc_upper_bound) PARAMS ((bfd *, sec_ptr));
|
||||||
. long (*_bfd_canonicalize_reloc) PARAMS ((bfd *, sec_ptr, arelent **,
|
. long (*_bfd_canonicalize_reloc) PARAMS ((bfd *, sec_ptr, arelent **,
|
||||||
. struct symbol_cache_entry **));
|
. struct symbol_cache_entry **));
|
||||||
|
@ -392,8 +395,8 @@ BFD_JUMP_TABLE macros.
|
||||||
.
|
.
|
||||||
. {* Routines used when writing an object file. *}
|
. {* Routines used when writing an object file. *}
|
||||||
.#define BFD_JUMP_TABLE_WRITE(NAME) \
|
.#define BFD_JUMP_TABLE_WRITE(NAME) \
|
||||||
.CAT(NAME,_set_arch_mach),\
|
.CONCAT2 (NAME,_set_arch_mach), \
|
||||||
.CAT(NAME,_set_section_contents)
|
.CONCAT2 (NAME,_set_section_contents)
|
||||||
. boolean (*_bfd_set_arch_mach) PARAMS ((bfd *, enum bfd_architecture,
|
. boolean (*_bfd_set_arch_mach) PARAMS ((bfd *, enum bfd_architecture,
|
||||||
. unsigned long));
|
. unsigned long));
|
||||||
. boolean (*_bfd_set_section_contents) PARAMS ((bfd *, sec_ptr, PTR,
|
. boolean (*_bfd_set_section_contents) PARAMS ((bfd *, sec_ptr, PTR,
|
||||||
|
@ -401,15 +404,15 @@ BFD_JUMP_TABLE macros.
|
||||||
.
|
.
|
||||||
. {* Routines used by the linker. *}
|
. {* Routines used by the linker. *}
|
||||||
.#define BFD_JUMP_TABLE_LINK(NAME) \
|
.#define BFD_JUMP_TABLE_LINK(NAME) \
|
||||||
.CAT(NAME,_sizeof_headers),\
|
.CONCAT2 (NAME,_sizeof_headers), \
|
||||||
.CAT(NAME,_bfd_get_relocated_section_contents),\
|
.CONCAT2 (NAME,_bfd_get_relocated_section_contents), \
|
||||||
.CAT(NAME,_bfd_relax_section),\
|
.CONCAT2 (NAME,_bfd_relax_section), \
|
||||||
.CAT(NAME,_bfd_link_hash_table_create),\
|
.CONCAT2 (NAME,_bfd_link_hash_table_create), \
|
||||||
.CAT(NAME,_bfd_link_add_symbols),\
|
.CONCAT2 (NAME,_bfd_link_add_symbols), \
|
||||||
.CAT(NAME,_bfd_final_link),\
|
.CONCAT2 (NAME,_bfd_final_link), \
|
||||||
.CAT(NAME,_bfd_link_split_section),\
|
.CONCAT2 (NAME,_bfd_link_split_section), \
|
||||||
.CAT(NAME,_bfd_gc_sections),\
|
.CONCAT2 (NAME,_bfd_gc_sections), \
|
||||||
.CAT(NAME,_bfd_merge_sections)
|
.CONCAT2 (NAME,_bfd_merge_sections)
|
||||||
. int (*_bfd_sizeof_headers) PARAMS ((bfd *, boolean));
|
. int (*_bfd_sizeof_headers) PARAMS ((bfd *, boolean));
|
||||||
. bfd_byte *(*_bfd_get_relocated_section_contents)
|
. bfd_byte *(*_bfd_get_relocated_section_contents)
|
||||||
. PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *,
|
. PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *,
|
||||||
|
@ -440,10 +443,10 @@ BFD_JUMP_TABLE macros.
|
||||||
.
|
.
|
||||||
. {* Routines to handle dynamic symbols and relocs. *}
|
. {* Routines to handle dynamic symbols and relocs. *}
|
||||||
.#define BFD_JUMP_TABLE_DYNAMIC(NAME) \
|
.#define BFD_JUMP_TABLE_DYNAMIC(NAME) \
|
||||||
.CAT(NAME,_get_dynamic_symtab_upper_bound),\
|
.CONCAT2 (NAME,_get_dynamic_symtab_upper_bound), \
|
||||||
.CAT(NAME,_canonicalize_dynamic_symtab),\
|
.CONCAT2 (NAME,_canonicalize_dynamic_symtab), \
|
||||||
.CAT(NAME,_get_dynamic_reloc_upper_bound),\
|
.CONCAT2 (NAME,_get_dynamic_reloc_upper_bound), \
|
||||||
.CAT(NAME,_canonicalize_dynamic_reloc)
|
.CONCAT2 (NAME,_canonicalize_dynamic_reloc)
|
||||||
. {* Get the amount of memory required to hold the dynamic symbols. *}
|
. {* Get the amount of memory required to hold the dynamic symbols. *}
|
||||||
. long (*_bfd_get_dynamic_symtab_upper_bound) PARAMS ((bfd *));
|
. long (*_bfd_get_dynamic_symtab_upper_bound) PARAMS ((bfd *));
|
||||||
. {* Read in the dynamic symbols. *}
|
. {* Read in the dynamic symbols. *}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BFD back-end for NetBSD/VAX a.out-ish binaries.
|
/* BFD back-end for NetBSD/VAX a.out-ish binaries.
|
||||||
Copyright 1998, 2000 Free Software Foundation, Inc.
|
Copyright 1998, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
|
@ -26,7 +26,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define DEFAULT_ARCH bfd_arch_vax
|
#define DEFAULT_ARCH bfd_arch_vax
|
||||||
#define DEFAULT_MID M_VAX_NETBSD
|
#define DEFAULT_MID M_VAX_NETBSD
|
||||||
|
|
||||||
#define MY(OP) CAT(vaxnetbsd_,OP)
|
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
|
||||||
|
remove whitespace added here, and thus will fail to concatenate
|
||||||
|
the tokens. */
|
||||||
|
#define MY(OP) CONCAT2 (vaxnetbsd_,OP)
|
||||||
|
|
||||||
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
/* This needs to start with a.out so GDB knows it is an a.out variant. */
|
||||||
#define TARGETNAME "a.out-vax-netbsd"
|
#define TARGETNAME "a.out-vax-netbsd"
|
||||||
|
|
||||||
|
|
1
bfd/version.h
Normal file
1
bfd/version.h
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#define BFD_VERSION_DATE 20011001
|
|
@ -313,7 +313,7 @@ _bfd_vms_write_hdr (abfd, objtype)
|
||||||
else
|
else
|
||||||
_bfd_vms_output_counted (abfd, "NONAME");
|
_bfd_vms_output_counted (abfd, "NONAME");
|
||||||
|
|
||||||
_bfd_vms_output_counted (abfd, BFD_VERSION);
|
_bfd_vms_output_counted (abfd, BFD_VERSION_STRING);
|
||||||
_bfd_vms_output_dump (abfd, get_vms_time_string (), 17);
|
_bfd_vms_output_dump (abfd, get_vms_time_string (), 17);
|
||||||
_bfd_vms_output_fill (abfd, 0, 17);
|
_bfd_vms_output_fill (abfd, 0, 17);
|
||||||
_bfd_vms_output_flush (abfd);
|
_bfd_vms_output_flush (abfd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue