diff options
author | Nick Clifton <nickc@redhat.com> | 2001-02-18 23:33:11 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-02-18 23:33:11 +0000 |
commit | e135f41bc2c2080a18ec4458a05757e1dc824876 (patch) | |
tree | 2b4c79d6629d37f6511d95efe4bdb75d1054736d /bfd/libaout.h | |
parent | Set the architecture (GDB multiarch needs it). (diff) | |
download | binutils-gdb-e135f41bc2c2080a18ec4458a05757e1dc824876.tar.gz binutils-gdb-e135f41bc2c2080a18ec4458a05757e1dc824876.tar.bz2 binutils-gdb-e135f41bc2c2080a18ec4458a05757e1dc824876.zip |
Add PDP-11 support
Diffstat (limited to 'bfd/libaout.h')
-rw-r--r-- | bfd/libaout.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bfd/libaout.h b/bfd/libaout.h index 1682428cb1d..818b10c95e8 100644 --- a/bfd/libaout.h +++ b/bfd/libaout.h @@ -33,22 +33,39 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #if ARCH_SIZE==64 #define GET_WORD bfd_h_get_64 #define GET_SWORD bfd_h_get_signed_64 +#define GET_MAGIC bfd_h_get_32 #define PUT_WORD bfd_h_put_64 +#define PUT_MAGIC bfd_h_put_32 #ifndef NAME #define NAME(x,y) CAT3(x,_64_,y) #endif #define JNAME(x) CAT(x,_64) #define BYTES_IN_WORD 8 +#else +#if ARCH_SIZE==16 +#define GET_WORD bfd_h_get_16 +#define GET_SWORD bfd_h_get_signed_16 +#define GET_MAGIC bfd_h_get_16 +#define PUT_WORD bfd_h_put_16 +#define PUT_MAGIC bfd_h_put_16 +#ifndef NAME +#define NAME(x,y) CAT3(x,_16_,y) +#endif +#define JNAME(x) CAT(x,_16) +#define BYTES_IN_WORD 2 #else /* ARCH_SIZE == 32 */ #define GET_WORD bfd_h_get_32 #define GET_SWORD bfd_h_get_signed_32 +#define GET_MAGIC bfd_h_get_32 #define PUT_WORD bfd_h_put_32 +#define PUT_MAGIC bfd_h_put_32 #ifndef NAME #define NAME(x,y) CAT3(x,_32_,y) #endif #define JNAME(x) CAT(x,_32) #define BYTES_IN_WORD 4 #endif /* ARCH_SIZE==32 */ +#endif /* ARCH_SIZE==64 */ /* Declare at file level, since used in parameter lists, which have weird scope. */ @@ -567,6 +584,8 @@ NAME(aout,bfd_free_cached_info) PARAMS ((bfd *)); /* A.out uses the generic versions of these routines... */ +#define aout_16_get_section_contents _bfd_generic_get_section_contents + #define aout_32_get_section_contents _bfd_generic_get_section_contents #define aout_64_get_section_contents _bfd_generic_get_section_contents |