| OLD | NEW |
| 1 /* Ubicom IP2xxx specific support for 32-bit ELF | 1 /* Ubicom IP2xxx specific support for 32-bit ELF |
| 2 Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 | 2 Copyright 2000, 2001, 2002, 2003, 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 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 bfd_boolean unresolved_reloc; | 1429 bfd_boolean unresolved_reloc; |
| 1430 | 1430 |
| 1431 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, | 1431 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, |
| 1432 r_symndx, symtab_hdr, sym_hashes, | 1432 r_symndx, symtab_hdr, sym_hashes, |
| 1433 h, sec, relocation, | 1433 h, sec, relocation, |
| 1434 unresolved_reloc, warned); | 1434 unresolved_reloc, warned); |
| 1435 | 1435 |
| 1436 name = h->root.root.string; | 1436 name = h->root.root.string; |
| 1437 } | 1437 } |
| 1438 | 1438 |
| 1439 if (sec != NULL && elf_discarded_section (sec)) | 1439 if (sec != NULL && discarded_section (sec)) |
| 1440 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, | 1440 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, |
| 1441 » » » » » rel, relend, howto, contents); | 1441 » » » » » rel, 1, relend, howto, 0, contents); |
| 1442 | 1442 |
| 1443 if (info->relocatable) | 1443 if (info->relocatable) |
| 1444 continue; | 1444 continue; |
| 1445 | 1445 |
| 1446 /* Finally, the sole IP2K-specific part. */ | 1446 /* Finally, the sole IP2K-specific part. */ |
| 1447 r = ip2k_final_link_relocate (howto, input_bfd, input_section, | 1447 r = ip2k_final_link_relocate (howto, input_bfd, input_section, |
| 1448 contents, rel, relocation); | 1448 contents, rel, relocation); |
| 1449 | 1449 |
| 1450 if (r != bfd_reloc_ok) | 1450 if (r != bfd_reloc_ok) |
| 1451 { | 1451 { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1510 #define elf_backend_can_gc_sections 1 | 1510 #define elf_backend_can_gc_sections 1 |
| 1511 #define elf_backend_rela_normal 1 | 1511 #define elf_backend_rela_normal 1 |
| 1512 #define elf_backend_relocate_section ip2k_elf_relocate_section | 1512 #define elf_backend_relocate_section ip2k_elf_relocate_section |
| 1513 | 1513 |
| 1514 #define elf_symbol_leading_char '_' | 1514 #define elf_symbol_leading_char '_' |
| 1515 #define bfd_elf32_bfd_reloc_type_lookup ip2k_reloc_type_lookup | 1515 #define bfd_elf32_bfd_reloc_type_lookup ip2k_reloc_type_lookup |
| 1516 #define bfd_elf32_bfd_reloc_name_lookup ip2k_reloc_name_lookup | 1516 #define bfd_elf32_bfd_reloc_name_lookup ip2k_reloc_name_lookup |
| 1517 #define bfd_elf32_bfd_relax_section ip2k_elf_relax_section | 1517 #define bfd_elf32_bfd_relax_section ip2k_elf_relax_section |
| 1518 | 1518 |
| 1519 #include "elf32-target.h" | 1519 #include "elf32-target.h" |
| OLD | NEW |