| 1 | /* Tahoe running BSD (post-Reno) Unix. */ |
| 2 | |
| 3 | #include <fcntl.h> |
| 4 | #include <errno.h> |
| 5 | #include <stdio.h> |
| 6 | #include <sys/types.h> |
| 7 | #include <sys/stat.h> |
| 8 | #include <ctype.h> |
| 9 | #include <string.h> |
| 10 | #include <sys/file.h> |
| 11 | #include <stdlib.h> |
| 12 | |
| 13 | #define FASCIST_FDOPEN |
| 14 | #define NO_CORE_COMMAND |
| 15 | |
| 16 | #undef ALIGN /* They use it, we use it too */ |
| 17 | #include <machine/param.h> |
| 18 | #undef ALIGN /* They use it, we use it too */ |
| 19 | |
| 20 | #define HOST_PAGE_SIZE NBPG |
| 21 | #define HOST_MACHINE_ARCH bfd_arch_tahoe |
| 22 | |
| 23 | #define HOST_TEXT_START_ADDR 0 |
| 24 | #define HOST_STACK_END_ADDR KERNBASE |
| 25 | #define HOST_BIG_ENDIAN_P |
| 26 | |
| 27 | /* EXACT TYPES */ |
| 28 | typedef char int8e_type; |
| 29 | typedef unsigned char uint8e_type; |
| 30 | typedef short int16e_type; |
| 31 | typedef unsigned short uint16e_type; |
| 32 | typedef int int32e_type; |
| 33 | typedef unsigned int uint32e_type; |
| 34 | |
| 35 | /* CORRECT SIZE OR GREATER */ |
| 36 | typedef char int8_type; |
| 37 | typedef unsigned char uint8_type; |
| 38 | typedef short int16_type; |
| 39 | typedef unsigned short uint16_type; |
| 40 | typedef int int32_type; |
| 41 | typedef unsigned int uint32_type; |
| 42 | #include "fopen-same.h" |