Changeset 609 for branches/GNU/src/binutils/bfd/cpu-z8k.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/bfd/cpu-z8k.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* BFD library support routines for the Z800n architecture. 2 Copyright 1992, 1993, 1994, 2000 Free Software Foundation, Inc. 2 Copyright 1992, 1993, 1994, 2000, 2001, 2002 3 Free Software Foundation, Inc. 3 4 Hacked by Steve Chamberlain of Cygnus Support. 4 5 … … 22 23 #include "sysdep.h" 23 24 #include "libbfd.h" 25 26 static const bfd_arch_info_type *compatible 27 PARAMS ((const bfd_arch_info_type *, const bfd_arch_info_type *)); 24 28 25 29 #if 0 /* not used currently */ … … 118 122 119 123 static reloc_howto_type howto_16 120 = NEWHOWTO (howto16_callback, "abs16", 1, false, false);124 = NEWHOWTO (howto16_callback, "abs16", 1, FALSE, FALSE); 121 125 static reloc_howto_type howto_8 122 = NEWHOWTO (howto8_callback, "abs8", 0, false, false);126 = NEWHOWTO (howto8_callback, "abs8", 0, FALSE, FALSE); 123 127 124 128 static reloc_howto_type howto_8_FFnn 125 = NEWHOWTO (howto8_FFnn_callback, "ff00+abs8", 0, false, false);129 = NEWHOWTO (howto8_FFnn_callback, "ff00+abs8", 0, FALSE, FALSE); 126 130 127 131 static reloc_howto_type howto_8_pcrel 128 = NEWHOWTO (howto8_pcrel_callback, "pcrel8", 0, false, true);132 = NEWHOWTO (howto8_pcrel_callback, "pcrel8", 0, FALSE, TRUE); 129 133 130 134 static reloc_howto_type * … … 149 153 #endif 150 154 151 int bfd_default_scan_num_mach ();152 153 static boolean154 scan_mach (info, string)155 const struct bfd_arch_info *info;156 const char *string;157 {158 if (strcmp (string, "z8001") == 0 || strcmp (string, "z8k") == 0)159 {160 return bfd_mach_z8001 == info->mach;161 }162 if (strcmp (string, "z8002") == 0)163 {164 return bfd_mach_z8002 == info->mach;165 }166 return false;167 }168 169 155 /* This routine is provided two arch_infos and returns whether 170 156 they'd be compatible */ … … 182 168 static const bfd_arch_info_type arch_info_struct[] = 183 169 { 184 {32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, false, compatible, scan_mach, 0,}, 170 { 32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, FALSE, 171 compatible, bfd_default_scan, 0 } 185 172 }; 186 173 187 174 const bfd_arch_info_type bfd_z8k_arch = 188 175 { 189 32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, true, compatible, scan_mach, &arch_info_struct[0], 176 32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, TRUE, 177 compatible, bfd_default_scan, &arch_info_struct[0] 190 178 }; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.