| OLD | NEW |
| 1 /* OpenRISC-specific support for 32-bit ELF. | 1 /* OpenRISC-specific support for 32-bit ELF. |
| 2 Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007 | 2 Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2010, 2012 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 Contributed by Johan Rydberg, jrydberg@opencores.org | 4 Contributed by Johan Rydberg, jrydberg@opencores.org |
| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 else | 366 else |
| 367 { | 367 { |
| 368 bfd_boolean unresolved_reloc, warned; | 368 bfd_boolean unresolved_reloc, warned; |
| 369 | 369 |
| 370 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, | 370 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, |
| 371 r_symndx, symtab_hdr, sym_hashes, | 371 r_symndx, symtab_hdr, sym_hashes, |
| 372 h, sec, relocation, | 372 h, sec, relocation, |
| 373 unresolved_reloc, warned); | 373 unresolved_reloc, warned); |
| 374 } | 374 } |
| 375 | 375 |
| 376 if (sec != NULL && elf_discarded_section (sec)) | 376 if (sec != NULL && discarded_section (sec)) |
| 377 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, | 377 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, |
| 378 » » » » » rel, relend, howto, contents); | 378 » » » » » rel, 1, relend, howto, 0, contents); |
| 379 | 379 |
| 380 if (info->relocatable) | 380 if (info->relocatable) |
| 381 continue; | 381 continue; |
| 382 | 382 |
| 383 r = openrisc_final_link_relocate (howto, input_bfd, input_section, | 383 r = openrisc_final_link_relocate (howto, input_bfd, input_section, |
| 384 contents, rel, relocation); | 384 contents, rel, relocation); |
| 385 | 385 |
| 386 if (r != bfd_reloc_ok) | 386 if (r != bfd_reloc_ok) |
| 387 { | 387 { |
| 388 const char *msg = NULL; | 388 const char *msg = NULL; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 #define elf_backend_can_gc_sections 1 | 557 #define elf_backend_can_gc_sections 1 |
| 558 #define elf_backend_rela_normal 1 | 558 #define elf_backend_rela_normal 1 |
| 559 | 559 |
| 560 #define bfd_elf32_bfd_reloc_type_lookup openrisc_reloc_type_lookup | 560 #define bfd_elf32_bfd_reloc_type_lookup openrisc_reloc_type_lookup |
| 561 #define bfd_elf32_bfd_reloc_name_lookup openrisc_reloc_name_lookup | 561 #define bfd_elf32_bfd_reloc_name_lookup openrisc_reloc_name_lookup |
| 562 | 562 |
| 563 #define elf_backend_object_p openrisc_elf_object_p | 563 #define elf_backend_object_p openrisc_elf_object_p |
| 564 #define elf_backend_final_write_processing openrisc_elf_final_write_processing | 564 #define elf_backend_final_write_processing openrisc_elf_final_write_processing |
| 565 | 565 |
| 566 #include "elf32-target.h" | 566 #include "elf32-target.h" |
| OLD | NEW |