| OLD | NEW |
| 1 /* BFD back-end for National Semiconductor's CR16C ELF | 1 /* BFD back-end for National Semiconductor's CR16C ELF |
| 2 Copyright 2004, 2005, 2006, 2007, 2009, 2010 | 2 Copyright 2004, 2005, 2006, 2007, 2009, 2010, 2012 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of BFD, the Binary File Descriptor library. | 5 This file is part of BFD, the Binary File Descriptor library. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 else | 716 else |
| 717 { | 717 { |
| 718 bfd_boolean unresolved_reloc, warned; | 718 bfd_boolean unresolved_reloc, warned; |
| 719 | 719 |
| 720 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, | 720 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, |
| 721 r_symndx, symtab_hdr, sym_hashes, | 721 r_symndx, symtab_hdr, sym_hashes, |
| 722 h, sec, relocation, | 722 h, sec, relocation, |
| 723 unresolved_reloc, warned); | 723 unresolved_reloc, warned); |
| 724 } | 724 } |
| 725 | 725 |
| 726 if (sec != NULL && elf_discarded_section (sec)) | 726 if (sec != NULL && discarded_section (sec)) |
| 727 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, | 727 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, |
| 728 » » » » » rel, relend, howto, contents); | 728 » » » » » rel, 1, relend, howto, 0, contents); |
| 729 | 729 |
| 730 if (info->relocatable) | 730 if (info->relocatable) |
| 731 { | 731 { |
| 732 /* This is a relocatable link. We don't have to change | 732 /* This is a relocatable link. We don't have to change |
| 733 anything, unless the reloc is against a section symbol, | 733 anything, unless the reloc is against a section symbol, |
| 734 in which case we have to adjust according to where the | 734 in which case we have to adjust according to where the |
| 735 section symbol winds up in the output section. */ | 735 section symbol winds up in the output section. */ |
| 736 if (sym != NULL && ELF_ST_TYPE (sym->st_info) == STT_SECTION) | 736 if (sym != NULL && ELF_ST_TYPE (sym->st_info) == STT_SECTION) |
| 737 rel->r_addend += sec->output_offset; | 737 rel->r_addend += sec->output_offset; |
| 738 continue; | 738 continue; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 #define elf_info_to_howto_rel elf_cr16c_info_to_howto_rel | 953 #define elf_info_to_howto_rel elf_cr16c_info_to_howto_rel |
| 954 #define elf_backend_relocate_section elf32_cr16c_relocate_section | 954 #define elf_backend_relocate_section elf32_cr16c_relocate_section |
| 955 #define elf_backend_symbol_processing elf32_cr16c_symbol_processing | 955 #define elf_backend_symbol_processing elf32_cr16c_symbol_processing |
| 956 #define elf_backend_section_from_bfd_section elf32_cr16c_section_from_bfd_sec
tion | 956 #define elf_backend_section_from_bfd_section elf32_cr16c_section_from_bfd_sec
tion |
| 957 #define elf_backend_add_symbol_hook elf32_cr16c_add_symbol_hook | 957 #define elf_backend_add_symbol_hook elf32_cr16c_add_symbol_hook |
| 958 #define elf_backend_link_output_symbol_hook elf32_cr16c_link_output_symbol_h
ook | 958 #define elf_backend_link_output_symbol_hook elf32_cr16c_link_output_symbol_h
ook |
| 959 | 959 |
| 960 #define elf_backend_can_gc_sections 1 | 960 #define elf_backend_can_gc_sections 1 |
| 961 | 961 |
| 962 #include "elf32-target.h" | 962 #include "elf32-target.h" |
| OLD | NEW |