From 5f8f6d56f2c542ccdd85b0bd2c9a6a6661620cb2 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Sat, 24 Apr 1993 02:10:09 +0000 Subject: Support for the alpha --- bfd/hosts/.Sanitize | 1 + bfd/hosts/alphaosf.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 bfd/hosts/alphaosf.h (limited to 'bfd/hosts') diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize index 1e8edf1..0157641 100644 --- a/bfd/hosts/.Sanitize +++ b/bfd/hosts/.Sanitize @@ -25,6 +25,7 @@ Do-first: Things-to-keep: +alphaosf.h amix.h apollo68.h apollov68.h diff --git a/bfd/hosts/alphaosf.h b/bfd/hosts/alphaosf.h new file mode 100644 index 0000000..d8454f0 --- /dev/null +++ b/bfd/hosts/alphaosf.h @@ -0,0 +1,50 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* Make the basic types 64-bit quantities on the host */ +#define HOST_64_BIT long +#ifndef DONTDECLARE_MALLOC +extern PTR EXFUN(malloc,(unsigned)); +extern PTR EXFUN(realloc, (PTR, unsigned)); +#endif + + + +/* EXACT TYPES */ +typedef char int8e_type; +typedef unsigned char uint8e_type; +typedef short int16e_type; +typedef unsigned short uint16e_type; +typedef int int32e_type; +typedef unsigned int uint32e_type; + + + +typedef unsigned long uint64e_type; + + +/* CORRECT SIZE OR GREATER */ +typedef char int8_type; +typedef unsigned char uint8_type; +typedef short int16_type; +typedef unsigned short uint16_type; +typedef int int32_type; +typedef unsigned int uint32_type; + + +typedef unsigned long uint64_type; +typedef long int64_type; + + +#define BYTES_IN_PRINTF_INT 4 + +#define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff)) +#define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff) +#include "fopen-same.h" -- cgit v1.1