OLD | NEW |
1 /* MSP430-specific support for 32-bit ELF | 1 /* MSP430-specific support for 32-bit ELF |
2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2010 | 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2010, 2012 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Contributed by Dmitry Diky <diwil@mail.ru> | 4 Contributed by Dmitry Diky <diwil@mail.ru> |
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 |
11 (at your option) any later version. | 11 (at your option) any later version. |
12 | 12 |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 else | 447 else |
448 { | 448 { |
449 bfd_boolean unresolved_reloc, warned; | 449 bfd_boolean unresolved_reloc, warned; |
450 | 450 |
451 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, | 451 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, |
452 r_symndx, symtab_hdr, sym_hashes, | 452 r_symndx, symtab_hdr, sym_hashes, |
453 h, sec, relocation, | 453 h, sec, relocation, |
454 unresolved_reloc, warned); | 454 unresolved_reloc, warned); |
455 } | 455 } |
456 | 456 |
457 if (sec != NULL && elf_discarded_section (sec)) | 457 if (sec != NULL && discarded_section (sec)) |
458 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, | 458 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, |
459 » » » » » rel, relend, howto, contents); | 459 » » » » » rel, 1, relend, howto, 0, contents); |
460 | 460 |
461 if (info->relocatable) | 461 if (info->relocatable) |
462 continue; | 462 continue; |
463 | 463 |
464 r = msp430_final_link_relocate (howto, input_bfd, input_section, | 464 r = msp430_final_link_relocate (howto, input_bfd, input_section, |
465 contents, rel, relocation); | 465 contents, rel, relocation); |
466 | 466 |
467 if (r != bfd_reloc_ok) | 467 if (r != bfd_reloc_ok) |
468 { | 468 { |
469 const char *msg = (const char *) NULL; | 469 const char *msg = (const char *) NULL; |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 #define elf_info_to_howto_rel NULL | 1170 #define elf_info_to_howto_rel NULL |
1171 #define elf_backend_relocate_section elf32_msp430_relocate_section | 1171 #define elf_backend_relocate_section elf32_msp430_relocate_section |
1172 #define elf_backend_check_relocs elf32_msp430_check_relocs | 1172 #define elf_backend_check_relocs elf32_msp430_check_relocs |
1173 #define elf_backend_can_gc_sections 1 | 1173 #define elf_backend_can_gc_sections 1 |
1174 #define elf_backend_final_write_processing bfd_elf_msp430_final_write_processi
ng | 1174 #define elf_backend_final_write_processing bfd_elf_msp430_final_write_processi
ng |
1175 #define elf_backend_object_p elf32_msp430_object_p | 1175 #define elf_backend_object_p elf32_msp430_object_p |
1176 #define elf_backend_post_process_headers _bfd_elf_set_osabi | 1176 #define elf_backend_post_process_headers _bfd_elf_set_osabi |
1177 #define bfd_elf32_bfd_relax_section msp430_elf_relax_section | 1177 #define bfd_elf32_bfd_relax_section msp430_elf_relax_section |
1178 | 1178 |
1179 #include "elf32-target.h" | 1179 #include "elf32-target.h" |
OLD | NEW |