OLD | NEW |
1 /* D10V-specific support for 32-bit ELF | 1 /* D10V-specific support for 32-bit ELF |
2 Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 2 Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
3 2007 Free Software Foundation, Inc. | 3 2007, 2010, 2012 Free Software Foundation, Inc. |
4 Contributed by Martin Hunt (hunt@cygnus.com). | 4 Contributed by Martin Hunt (hunt@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 |
11 (at your option) any later version. | 11 (at your option) any later version. |
12 | 12 |
13 This program is distributed in the hope that it will be useful, | 13 This program is distributed in the hope that it will be useful, |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 else | 456 else |
457 { | 457 { |
458 bfd_boolean unresolved_reloc, warned; | 458 bfd_boolean unresolved_reloc, warned; |
459 | 459 |
460 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, | 460 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, |
461 r_symndx, symtab_hdr, sym_hashes, | 461 r_symndx, symtab_hdr, sym_hashes, |
462 h, sec, relocation, | 462 h, sec, relocation, |
463 unresolved_reloc, warned); | 463 unresolved_reloc, warned); |
464 } | 464 } |
465 | 465 |
466 if (sec != NULL && elf_discarded_section (sec)) | 466 if (sec != NULL && discarded_section (sec)) |
467 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, | 467 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, |
468 » » » » » rel, relend, howto, contents); | 468 » » » » » rel, 1, relend, howto, 0, contents); |
469 | 469 |
470 if (info->relocatable) | 470 if (info->relocatable) |
471 continue; | 471 continue; |
472 | 472 |
473 if (h != NULL) | 473 if (h != NULL) |
474 name = h->root.root.string; | 474 name = h->root.root.string; |
475 else | 475 else |
476 { | 476 { |
477 name = (bfd_elf_string_from_elf_section | 477 name = (bfd_elf_string_from_elf_section |
478 (input_bfd, symtab_hdr->sh_link, sym->st_name)); | 478 (input_bfd, symtab_hdr->sh_link, sym->st_name)); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 #define elf_info_to_howto 0 | 544 #define elf_info_to_howto 0 |
545 #define elf_info_to_howto_rel d10v_info_to_howto_rel | 545 #define elf_info_to_howto_rel d10v_info_to_howto_rel |
546 #define elf_backend_object_p 0 | 546 #define elf_backend_object_p 0 |
547 #define elf_backend_final_write_processing 0 | 547 #define elf_backend_final_write_processing 0 |
548 #define elf_backend_gc_mark_hook elf32_d10v_gc_mark_hook | 548 #define elf_backend_gc_mark_hook elf32_d10v_gc_mark_hook |
549 #define elf_backend_check_relocs elf32_d10v_check_relocs | 549 #define elf_backend_check_relocs elf32_d10v_check_relocs |
550 #define elf_backend_relocate_section elf32_d10v_relocate_section | 550 #define elf_backend_relocate_section elf32_d10v_relocate_section |
551 #define elf_backend_can_gc_sections 1 | 551 #define elf_backend_can_gc_sections 1 |
552 | 552 |
553 #include "elf32-target.h" | 553 #include "elf32-target.h" |
OLD | NEW |