| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#define TC_VAX 1 |
| 23 |
|
| 24 |
#define TARGET_BYTES_BIG_ENDIAN 0 |
| 25 |
|
| 26 |
#ifdef OBJ_AOUT |
| 27 |
#ifdef TE_NetBSD |
| 28 |
#define TARGET_FORMAT "a.out-vax-netbsd" |
| 29 |
#endif |
| 30 |
#ifndef TARGET_FORMAT |
| 31 |
#define TARGET_FORMAT "a.out-vax-bsd" |
| 32 |
#endif |
| 33 |
#endif |
| 34 |
|
| 35 |
#ifdef OBJ_VMS |
| 36 |
#define TARGET_FORMAT "vms-vax" |
| 37 |
#endif |
| 38 |
|
| 39 |
#ifdef OBJ_ELF |
| 40 |
#define TARGET_FORMAT "elf32-vax" |
| 41 |
#endif |
| 42 |
|
| 43 |
#define BFD_ARCH bfd_arch_vax |
| 44 |
#define TARGET_ARCH bfd_arch_vax |
| 45 |
|
| 46 |
#ifdef BFD_ASSEMBLER |
| 47 |
#define NO_RELOC BFD_RELOC_NONE |
| 48 |
#else |
| 49 |
#define NO_RELOC 0 |
| 50 |
#endif |
| 51 |
#define NOP_OPCODE 0x01 |
| 52 |
|
| 53 |
#define tc_aout_pre_write_hook(x) {;} |
| 54 |
#define tc_crawl_symbol_chain(a) {;} |
| 55 |
#define md_operand(x) |
| 56 |
|
| 57 |
long md_chars_to_number PARAMS ((unsigned char *, int)); |
| 58 |
|
| 59 |
extern const struct relax_type md_relax_table[]; |
| 60 |
#define TC_GENERIC_RELAX_TABLE md_relax_table |
| 61 |
|
| 62 |
#ifdef BFD_ASSEMBLER |
| 63 |
|
| 64 |
#define MD_APPLY_SYM_VALUE(FIX) 0 |
| 65 |
|
| 66 |
#define tc_fix_adjustable(FIX) \ |
| 67 |
((FIX)->fx_r_type != BFD_RELOC_VTABLE_INHERIT \ |
| 68 |
&& (FIX)->fx_r_type != BFD_RELOC_32_PLT_PCREL \ |
| 69 |
&& (FIX)->fx_r_type != BFD_RELOC_32_GOT_PCREL \ |
| 70 |
&& (FIX)->fx_r_type != BFD_RELOC_VTABLE_ENTRY \ |
| 71 |
&& ((FIX)->fx_pcrel \ |
| 72 |
|| ((FIX)->fx_subsy != NULL \ |
| 73 |
&& (S_GET_SEGMENT ((FIX)->fx_subsy) \ |
| 74 |
== S_GET_SEGMENT ((FIX)->fx_addsy))) \ |
| 75 |
|| S_IS_LOCAL ((FIX)->fx_addsy))) |
| 76 |
#endif |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|