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 | da936ce5c8a9f6d4f0813647da9d14cfec6ae668 (patch) | |
tree | 5936de4faf7f4298f4f6ca610ce84f71890725c4 /bfd/libaout.h | |
parent | 2b48f92baebc72ef5b6ed64ef79d1fc5b63b8a55 (diff) | |
download | gdb-da936ce5c8a9f6d4f0813647da9d14cfec6ae668.tar.gz |
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 |