Changeset 609 for branches/GNU/src/binutils/bfd/aout-cris.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/bfd/aout-cris.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* BFD backend for CRIS a.out binaries. 2 Copyright 2000 Free Software Foundation, Inc.2 Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 3 3 Contributed by Axis Communications AB. 4 4 Written by Hans-Peter Nilsson. … … 24 24 25 25 #define N_HEADER_IN_TEXT(x) 0 26 #define BYTES_IN_WORD 427 26 #define N_TXTOFF(x) 32 28 27 #define ENTRY_CAN_BE_ZERO … … 38 37 symbol info, and luckily there's no pressing need for correctness for 39 38 those vma:s at this time. */ 40 #define N_TXTADDR(x) ((x).a_entry & ~ 0xffff)39 #define N_TXTADDR(x) ((x).a_entry & ~(bfd_vma) 0xffff) 41 40 42 41 /* If you change this to 4, you can not link to an address N*4+2. */ … … 65 64 #define DEFAULT_ARCH bfd_arch_cris 66 65 67 /* ??? Spacing might be essential for the parameters in this macro. 68 Do Not Change. */ 69 #define MY(OP) CAT (cris_aout_,OP) 70 #define NAME(x,y) CAT3(cris_aout,_32_,y) 66 /* Do not "beautify" the CONCAT* macro args. Traditional C will not 67 remove whitespace added here, and thus will fail to concatenate 68 the tokens. */ 69 #define MY(OP) CONCAT2 (cris_aout_,OP) 70 #define NAME(x, y) CONCAT3 (cris_aout,_32_,y) 71 71 72 72 #include "bfd.h" … … 76 76 77 77 #define MY_write_object_contents MY(write_object_contents) 78 static b oolean MY(write_object_contents) PARAMS ((bfd *));78 static bfd_boolean MY(write_object_contents) PARAMS ((bfd *)); 79 79 80 80 /* Forward this, so we can use a pointer to it in PARAMS. */ … … 92 92 93 93 #define MY_set_sizes MY(set_sizes) 94 static b oolean MY(set_sizes) PARAMS ((bfd *));94 static bfd_boolean MY(set_sizes) PARAMS ((bfd *)); 95 95 96 96 /* To set back reloc_size to ext, we make MY(set_sizes) be called … … 113 113 #endif 114 114 115 #define MACHTYPE_OK(mtype) ((mtype) == M_CRIS) 116 115 117 /* Include generic functions (some are overridden above). */ 116 118 #include "aout32.c" … … 119 121 /* We need our own version to set header flags. */ 120 122 121 static b oolean123 static bfd_boolean 122 124 MY(write_object_contents) (abfd) 123 125 bfd *abfd; … … 141 143 WRITE_HEADERS (abfd, execp); 142 144 143 return true;145 return TRUE; 144 146 } 145 147 … … 157 159 int r_extern; 158 160 unsigned int r_type; 159 unsigned intr_addend;161 bfd_vma r_addend; 160 162 asymbol *sym = *(g->sym_ptr_ptr); 161 163 asection *output_section = sym->section->output_section; … … 248 250 { 249 251 (*_bfd_error_handler) (_("%s: Invalid relocation type imported: %d"), 250 bfd_ get_filename (abfd), r_type);252 bfd_archive_filename (abfd), r_type); 251 253 252 254 bfd_set_error(bfd_error_wrong_format); … … 259 261 (*_bfd_error_handler) 260 262 (_("%s: Bad relocation record imported: %d"), 261 bfd_ get_filename (abfd), r_index);263 bfd_archive_filename (abfd), r_index); 262 264 263 265 bfd_set_error (bfd_error_wrong_format); … … 277 279 NAME (aout, set_arch_mach) in aoutx. */ 278 280 279 static b oolean281 static bfd_boolean 280 282 MY(set_sizes) (abfd) 281 283 bfd *abfd; … … 295 297 obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE; 296 298 297 return true;299 return TRUE; 298 300 } 299 301 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.