| OLD | NEW |
| 1 /* BFD back-end for TMS320C54X coff binaries. | 1 /* BFD back-end for TMS320C54X coff binaries. |
| 2 Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2011, 2012 | 2 Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2011, 2012 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 Contributed by Timothy Wall (twall@cygnus.com) | 4 Contributed by Timothy Wall (twall@cygnus.com) |
| 5 | 5 |
| 6 This file is part of BFD, the Binary File Descriptor library. | 6 This file is part of BFD, the Binary File Descriptor library. |
| 7 | 7 |
| 8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
| 9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
| 10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 ticoff_bfd_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED, | 316 ticoff_bfd_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED, |
| 317 const char *name) | 317 const char *name) |
| 318 { | 318 { |
| 319 if (TICOFF_LOCAL_LABEL_P(name)) | 319 if (TICOFF_LOCAL_LABEL_P(name)) |
| 320 return TRUE; | 320 return TRUE; |
| 321 return FALSE; | 321 return FALSE; |
| 322 } | 322 } |
| 323 | 323 |
| 324 #define coff_bfd_is_local_label_name ticoff_bfd_is_local_label_name | 324 #define coff_bfd_is_local_label_name ticoff_bfd_is_local_label_name |
| 325 | 325 |
| 326 /* Clear the r_reserved field in relocs. */ | |
| 327 #define SWAP_OUT_RELOC_EXTRA(abfd,src,dst) \ | |
| 328 do \ | |
| 329 { \ | |
| 330 dst->r_reserved[0] = 0; \ | |
| 331 dst->r_reserved[1] = 0; \ | |
| 332 } \ | |
| 333 while (0) | |
| 334 | |
| 335 /* Customize coffcode.h; the default coff_ functions are set up to use COFF2; | 326 /* Customize coffcode.h; the default coff_ functions are set up to use COFF2; |
| 336 coff_bad_format_hook uses BADMAG, so set that for COFF2. The COFF1 | 327 coff_bad_format_hook uses BADMAG, so set that for COFF2. The COFF1 |
| 337 and COFF0 vectors use custom _bad_format_hook procs instead of setting | 328 and COFF0 vectors use custom _bad_format_hook procs instead of setting |
| 338 BADMAG. */ | 329 BADMAG. */ |
| 339 #define BADMAG(x) COFF2_BADMAG(x) | 330 #define BADMAG(x) COFF2_BADMAG(x) |
| 340 | 331 |
| 341 #ifndef bfd_pe_print_pdata | 332 #ifndef bfd_pe_print_pdata |
| 342 #define bfd_pe_print_pdata NULL | 333 #define bfd_pe_print_pdata NULL |
| 343 #endif | 334 #endif |
| 344 | 335 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 BFD_JUMP_TABLE_SYMBOLS (coff), | 664 BFD_JUMP_TABLE_SYMBOLS (coff), |
| 674 BFD_JUMP_TABLE_RELOCS (coff), | 665 BFD_JUMP_TABLE_RELOCS (coff), |
| 675 BFD_JUMP_TABLE_WRITE (tic54x), | 666 BFD_JUMP_TABLE_WRITE (tic54x), |
| 676 BFD_JUMP_TABLE_LINK (coff), | 667 BFD_JUMP_TABLE_LINK (coff), |
| 677 BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), | 668 BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), |
| 678 | 669 |
| 679 & tic54x_coff2_vec, | 670 & tic54x_coff2_vec, |
| 680 | 671 |
| 681 COFF_SWAP_TABLE | 672 COFF_SWAP_TABLE |
| 682 }; | 673 }; |
| OLD | NEW |