Changeset 609 for branches/GNU/src/binutils/bfd/aout-target.h
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/bfd/aout-target.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* Define a target vector and some small routines for a variant of a.out. 2 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3 2000, 2001 3 2000, 2001, 2002 4 4 Free Software Foundation, Inc. 5 5 … … 89 89 /* Determine the architecture and machine type of the object file. */ 90 90 #ifdef SET_ARCH_MACH 91 SET_ARCH_MACH (abfd, *execp);91 SET_ARCH_MACH (abfd, *execp); 92 92 #else 93 bfd_default_set_arch_mach (abfd, DEFAULT_ARCH, 0);93 bfd_default_set_arch_mach (abfd, DEFAULT_ARCH, 0); 94 94 #endif 95 95 … … 147 147 struct internal_exec exec; /* Cleaned-up exec header */ 148 148 const bfd_target *target; 149 150 if (bfd_read ((PTR) &exec_bytes, 1, EXEC_BYTES_SIZE, abfd) 151 != EXEC_BYTES_SIZE) { 152 if (bfd_get_error () != bfd_error_system_call) 153 bfd_set_error (bfd_error_wrong_format); 154 return 0; 155 } 149 bfd_size_type amt = EXEC_BYTES_SIZE; 150 151 if (bfd_bread ((PTR) &exec_bytes, amt, abfd) != amt) 152 { 153 if (bfd_get_error () != bfd_error_system_call) 154 bfd_set_error (bfd_error_wrong_format); 155 return 0; 156 } 156 157 157 158 #ifdef SWAP_MAGIC 158 159 exec.a_info = SWAP_MAGIC (exec_bytes.e_info); 159 160 #else 160 exec.a_info = bfd_h_get_32(abfd, exec_bytes.e_info);161 exec.a_info = GET_MAGIC (abfd, exec_bytes.e_info); 161 162 #endif /* SWAP_MAGIC */ 162 163 … … 201 202 #ifndef MY_mkobject 202 203 203 static b oolean MY(mkobject) PARAMS ((bfd *));204 205 static b oolean204 static bfd_boolean MY(mkobject) PARAMS ((bfd *)); 205 206 static bfd_boolean 206 207 MY(mkobject) (abfd) 207 208 bfd *abfd; 208 209 { 209 if ( NAME(aout,mkobject) (abfd) == false)210 return false;210 if (! NAME(aout,mkobject) (abfd)) 211 return FALSE; 211 212 #if 0 /* Sizes get set in set_sizes callback, later, after we know 212 213 the architecture and machine. */ … … 215 216 adata(abfd).exec_bytes_size = EXEC_BYTES_SIZE; 216 217 #endif 217 return true;218 return TRUE; 218 219 } 219 220 #define MY_mkobject MY(mkobject) … … 228 229 after the section contents have been set. */ 229 230 230 static b oolean MY_bfd_copy_private_section_data231 static bfd_boolean MY_bfd_copy_private_section_data 231 232 PARAMS ((bfd *, asection *, bfd *, asection *)); 232 233 233 static b oolean234 static bfd_boolean 234 235 MY_bfd_copy_private_section_data (ibfd, isec, obfd, osec) 235 236 bfd *ibfd; … … 241 242 && bfd_get_flavour (obfd) == bfd_target_aout_flavour) 242 243 obj_aout_subformat (obfd) = obj_aout_subformat (ibfd); 243 return true;244 return TRUE; 244 245 } 245 246 … … 251 252 252 253 #ifndef MY_write_object_contents 253 static boolean 254 static bfd_boolean MY(write_object_contents) PARAMS ((bfd *)); 255 256 static bfd_boolean 254 257 MY(write_object_contents) (abfd) 255 258 bfd *abfd; … … 262 265 WRITE_HEADERS(abfd, execp); 263 266 264 return true;267 return TRUE; 265 268 } 266 269 #define MY_write_object_contents MY(write_object_contents) … … 269 272 #ifndef MY_set_sizes 270 273 271 static b oolean MY(set_sizes) PARAMS ((bfd *));272 273 static b oolean274 static bfd_boolean MY(set_sizes) PARAMS ((bfd *)); 275 276 static bfd_boolean 274 277 MY(set_sizes) (abfd) 275 278 bfd *abfd; … … 285 288 286 289 adata(abfd).exec_bytes_size = EXEC_BYTES_SIZE; 287 return true;290 return TRUE; 288 291 } 289 292 #define MY_set_sizes MY(set_sizes) … … 327 330 #endif 328 331 329 static CONSTstruct aout_backend_data MY(backend_data) = {332 static const struct aout_backend_data MY(backend_data) = { 330 333 MY_zmagic_contiguous, 331 334 MY_text_includes_header, … … 373 376 offsets in the output file. */ 374 377 375 static b oolean MY_bfd_final_link PARAMS ((bfd *, struct bfd_link_info *));376 377 static b oolean378 static bfd_boolean MY_bfd_final_link PARAMS ((bfd *, struct bfd_link_info *)); 379 380 static bfd_boolean 378 381 MY_bfd_final_link (abfd, info) 379 382 bfd *abfd; … … 508 511 #define MY_bfd_gc_sections bfd_generic_gc_sections 509 512 #endif 513 #ifndef MY_bfd_merge_sections 514 #define MY_bfd_merge_sections bfd_generic_merge_sections 515 #endif 516 #ifndef MY_bfd_discard_group 517 #define MY_bfd_discard_group bfd_generic_discard_group 518 #endif 510 519 #ifndef MY_bfd_reloc_type_lookup 511 520 #define MY_bfd_reloc_type_lookup NAME(aout,reloc_type_lookup) … … 523 532 #define MY_bfd_link_hash_table_create NAME(aout,link_hash_table_create) 524 533 #endif 534 #ifndef MY_bfd_link_hash_table_free 535 #define MY_bfd_link_hash_table_free _bfd_generic_link_hash_table_free 536 #endif 525 537 #ifndef MY_bfd_link_add_symbols 526 538 #define MY_bfd_link_add_symbols NAME(aout,link_add_symbols) 539 #endif 540 #ifndef MY_bfd_link_just_syms 541 #define MY_bfd_link_just_syms _bfd_generic_link_just_syms 527 542 #endif 528 543 #ifndef MY_bfd_link_split_section -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.