Changeset 609 for branches/GNU/src/binutils/bfd/coff-i386.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/bfd/coff-i386.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* BFD back-end for Intel 386 COFF files. 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 Written by Cygnus Support. … … 118 118 generate a non-PE executable, we have to compensate it 119 119 here. */ 120 if (howto->pc_relative == true && howto->pcrel_offset == true)120 if (howto->pc_relative && howto->pcrel_offset) 121 121 diff = -(1 << howto->size); 122 122 else … … 158 158 short x = bfd_get_16 (abfd, addr); 159 159 DOIT (x); 160 bfd_put_16 (abfd, x, addr);160 bfd_put_16 (abfd, (bfd_vma) x, addr); 161 161 } 162 162 break; … … 166 166 long x = bfd_get_32 (abfd, addr); 167 167 DOIT (x); 168 bfd_put_32 (abfd, x, addr);168 bfd_put_32 (abfd, (bfd_vma) x, addr); 169 169 } 170 170 break; … … 180 180 181 181 #ifdef COFF_WITH_PE 182 /* Return trueif this relocation should appear in the output .reloc182 /* Return TRUE if this relocation should appear in the output .reloc 183 183 section. */ 184 184 185 static b oolean in_reloc_p PARAMS ((bfd *, reloc_howto_type *));186 187 static b oolean in_reloc_p (abfd, howto)185 static bfd_boolean in_reloc_p PARAMS ((bfd *, reloc_howto_type *)); 186 187 static bfd_boolean in_reloc_p (abfd, howto) 188 188 bfd * abfd ATTRIBUTE_UNUSED; 189 189 reloc_howto_type *howto; … … 194 194 195 195 #ifndef PCRELOFFSET 196 #define PCRELOFFSET false196 #define PCRELOFFSET FALSE 197 197 #endif 198 198 … … 209 209 2, /* size (0 = byte, 1 = short, 2 = long) */ 210 210 32, /* bitsize */ 211 false, /* pc_relative */211 FALSE, /* pc_relative */ 212 212 0, /* bitpos */ 213 213 complain_overflow_bitfield, /* complain_on_overflow */ 214 214 coff_i386_reloc, /* special_function */ 215 215 "dir32", /* name */ 216 true, /* partial_inplace */216 TRUE, /* partial_inplace */ 217 217 0xffffffff, /* src_mask */ 218 218 0xffffffff, /* dst_mask */ 219 true), /* pcrel_offset */219 TRUE), /* pcrel_offset */ 220 220 /* PE IMAGE_REL_I386_DIR32NB relocation (7). */ 221 221 HOWTO (R_IMAGEBASE, /* type */ … … 223 223 2, /* size (0 = byte, 1 = short, 2 = long) */ 224 224 32, /* bitsize */ 225 false, /* pc_relative */225 FALSE, /* pc_relative */ 226 226 0, /* bitpos */ 227 227 complain_overflow_bitfield, /* complain_on_overflow */ 228 228 coff_i386_reloc, /* special_function */ 229 229 "rva32", /* name */ 230 true, /* partial_inplace */230 TRUE, /* partial_inplace */ 231 231 0xffffffff, /* src_mask */ 232 232 0xffffffff, /* dst_mask */ 233 false), /* pcrel_offset */233 FALSE), /* pcrel_offset */ 234 234 EMPTY_HOWTO (010), 235 235 EMPTY_HOWTO (011), … … 244 244 0, /* size (0 = byte, 1 = short, 2 = long) */ 245 245 8, /* bitsize */ 246 false, /* pc_relative */246 FALSE, /* pc_relative */ 247 247 0, /* bitpos */ 248 248 complain_overflow_bitfield, /* complain_on_overflow */ 249 249 coff_i386_reloc, /* special_function */ 250 250 "8", /* name */ 251 true, /* partial_inplace */251 TRUE, /* partial_inplace */ 252 252 0x000000ff, /* src_mask */ 253 253 0x000000ff, /* dst_mask */ … … 258 258 1, /* size (0 = byte, 1 = short, 2 = long) */ 259 259 16, /* bitsize */ 260 false, /* pc_relative */260 FALSE, /* pc_relative */ 261 261 0, /* bitpos */ 262 262 complain_overflow_bitfield, /* complain_on_overflow */ 263 263 coff_i386_reloc, /* special_function */ 264 264 "16", /* name */ 265 true, /* partial_inplace */265 TRUE, /* partial_inplace */ 266 266 0x0000ffff, /* src_mask */ 267 267 0x0000ffff, /* dst_mask */ … … 272 272 2, /* size (0 = byte, 1 = short, 2 = long) */ 273 273 32, /* bitsize */ 274 false, /* pc_relative */274 FALSE, /* pc_relative */ 275 275 0, /* bitpos */ 276 276 complain_overflow_bitfield, /* complain_on_overflow */ 277 277 coff_i386_reloc, /* special_function */ 278 278 "32", /* name */ 279 true, /* partial_inplace */279 TRUE, /* partial_inplace */ 280 280 0xffffffff, /* src_mask */ 281 281 0xffffffff, /* dst_mask */ … … 286 286 0, /* size (0 = byte, 1 = short, 2 = long) */ 287 287 8, /* bitsize */ 288 true, /* pc_relative */288 TRUE, /* pc_relative */ 289 289 0, /* bitpos */ 290 290 complain_overflow_signed, /* complain_on_overflow */ 291 291 coff_i386_reloc, /* special_function */ 292 292 "DISP8", /* name */ 293 true, /* partial_inplace */293 TRUE, /* partial_inplace */ 294 294 0x000000ff, /* src_mask */ 295 295 0x000000ff, /* dst_mask */ … … 300 300 1, /* size (0 = byte, 1 = short, 2 = long) */ 301 301 16, /* bitsize */ 302 true, /* pc_relative */302 TRUE, /* pc_relative */ 303 303 0, /* bitpos */ 304 304 complain_overflow_signed, /* complain_on_overflow */ 305 305 coff_i386_reloc, /* special_function */ 306 306 "DISP16", /* name */ 307 true, /* partial_inplace */307 TRUE, /* partial_inplace */ 308 308 0x0000ffff, /* src_mask */ 309 309 0x0000ffff, /* dst_mask */ … … 314 314 2, /* size (0 = byte, 1 = short, 2 = long) */ 315 315 32, /* bitsize */ 316 true, /* pc_relative */316 TRUE, /* pc_relative */ 317 317 0, /* bitpos */ 318 318 complain_overflow_signed, /* complain_on_overflow */ 319 319 coff_i386_reloc, /* special_function */ 320 320 "DISP32", /* name */ 321 true, /* partial_inplace */321 TRUE, /* partial_inplace */ 322 322 0xffffffff, /* src_mask */ 323 323 0xffffffff, /* dst_mask */ … … 389 389 relocateable link. */ 390 390 391 static b oolean coff_pe_i386_relocate_section391 static bfd_boolean coff_pe_i386_relocate_section 392 392 PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, 393 393 struct internal_reloc *, struct internal_syment *, asection **)); 394 394 395 static b oolean395 static bfd_boolean 396 396 coff_pe_i386_relocate_section (output_bfd, info, input_bfd, 397 397 input_section, contents, relocs, syms, … … 407 407 { 408 408 if (info->relocateable) 409 return true;409 return TRUE; 410 410 411 411 return _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd, … … 540 540 we treat all symbols starting with L as local. */ 541 541 542 static boolean coff_i386_is_local_label_name PARAMS ((bfd *, const char *)); 543 544 static boolean 542 static bfd_boolean coff_i386_is_local_label_name 543 PARAMS ((bfd *, const char *)); 544 545 static bfd_boolean 545 546 coff_i386_is_local_label_name (abfd, name) 546 547 bfd *abfd; … … 548 549 { 549 550 if (name[0] == 'L') 550 return true;551 return TRUE; 551 552 552 553 return _bfd_coff_is_local_label_name (abfd, name); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.