| OLD | NEW |
| 1 /* Intel 960 specific support for 32-bit ELF | 1 /* Intel 960 specific support for 32-bit ELF |
| 2 Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2007 | 2 Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2007, 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 27 matching lines...) Expand all Loading... |
| 40 change anything about the way the reloc is handled, since it will | 40 change anything about the way the reloc is handled, since it will |
| 41 all be done at final link time. Rather than put special case code | 41 all be done at final link time. Rather than put special case code |
| 42 into bfd_perform_relocation, all the reloc types use this howto | 42 into bfd_perform_relocation, all the reloc types use this howto |
| 43 function. It just short circuits the reloc if producing | 43 function. It just short circuits the reloc if producing |
| 44 relocatable output against an external symbol. */ | 44 relocatable output against an external symbol. */ |
| 45 | 45 |
| 46 static bfd_reloc_status_type | 46 static bfd_reloc_status_type |
| 47 elf32_i960_relocate (bfd *abfd ATTRIBUTE_UNUSED, | 47 elf32_i960_relocate (bfd *abfd ATTRIBUTE_UNUSED, |
| 48 arelent *reloc_entry, | 48 arelent *reloc_entry, |
| 49 asymbol *symbol, | 49 asymbol *symbol, |
| 50 » » PTR data ATTRIBUTE_UNUSED, | 50 » » void * data ATTRIBUTE_UNUSED, |
| 51 asection *input_section, | 51 asection *input_section, |
| 52 bfd *output_bfd, | 52 bfd *output_bfd, |
| 53 char **error_message ATTRIBUTE_UNUSED) | 53 char **error_message ATTRIBUTE_UNUSED) |
| 54 { | 54 { |
| 55 /* HACK: I think this first condition is necessary when producing | 55 /* HACK: I think this first condition is necessary when producing |
| 56 relocatable output. After the end of HACK, the code is identical | 56 relocatable output. After the end of HACK, the code is identical |
| 57 to bfd_elf_generic_reloc(). I would _guess_ the first change | 57 to bfd_elf_generic_reloc(). I would _guess_ the first change |
| 58 belongs there rather than here. martindo 1998-10-23. */ | 58 belongs there rather than here. martindo 1998-10-23. */ |
| 59 if (output_bfd != (bfd *) NULL | 59 if (output_bfd != (bfd *) NULL |
| 60 && reloc_entry->howto->pc_relative | 60 && reloc_entry->howto->pc_relative |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 return NULL; | 159 return NULL; |
| 160 } | 160 } |
| 161 | 161 |
| 162 #define TARGET_LITTLE_SYM bfd_elf32_i960_vec | 162 #define TARGET_LITTLE_SYM bfd_elf32_i960_vec |
| 163 #define TARGET_LITTLE_NAME "elf32-i960" | 163 #define TARGET_LITTLE_NAME "elf32-i960" |
| 164 #define ELF_ARCH bfd_arch_i960 | 164 #define ELF_ARCH bfd_arch_i960 |
| 165 #define ELF_MACHINE_CODE EM_960 | 165 #define ELF_MACHINE_CODE EM_960 |
| 166 #define ELF_MAXPAGESIZE 1 /* FIXME: This number is wrong, It should be
the page size in bytes. */ | 166 #define ELF_MAXPAGESIZE 1 /* FIXME: This number is wrong, It should be
the page size in bytes. */ |
| 167 | 167 |
| 168 #include "elf32-target.h" | 168 #include "elf32-target.h" |
| OLD | NEW |