OLD | NEW |
1 /* Support for 32-bit i386 NLM (NetWare Loadable Module) | 1 /* Support for 32-bit i386 NLM (NetWare Loadable Module) |
2 Copyright 1993, 1994, 2000, 2001, 2002, 2003, 2005, 2007 | 2 Copyright 1993, 1994, 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 source file have to be mapped into relocs that apply to the target | 226 source file have to be mapped into relocs that apply to the target |
227 file. This function is called by nlm_set_section_contents to give | 227 file. This function is called by nlm_set_section_contents to give |
228 it a chance to rework the relocs. | 228 it a chance to rework the relocs. |
229 | 229 |
230 This is actually a fairly general concept. However, this is not a | 230 This is actually a fairly general concept. However, this is not a |
231 general implementation. */ | 231 general implementation. */ |
232 | 232 |
233 static bfd_boolean | 233 static bfd_boolean |
234 nlm_i386_mangle_relocs (bfd *abfd, | 234 nlm_i386_mangle_relocs (bfd *abfd, |
235 asection *sec, | 235 asection *sec, |
236 » » » const PTR data, | 236 » » » const void * data, |
237 bfd_vma offset, | 237 bfd_vma offset, |
238 bfd_size_type count) | 238 bfd_size_type count) |
239 { | 239 { |
240 arelent **rel_ptr_ptr, **rel_end; | 240 arelent **rel_ptr_ptr, **rel_end; |
241 | 241 |
242 rel_ptr_ptr = sec->orelocation; | 242 rel_ptr_ptr = sec->orelocation; |
243 rel_end = rel_ptr_ptr + sec->reloc_count; | 243 rel_end = rel_ptr_ptr + sec->reloc_count; |
244 for (; rel_ptr_ptr < rel_end; rel_ptr_ptr++) | 244 for (; rel_ptr_ptr < rel_end; rel_ptr_ptr++) |
245 { | 245 { |
246 arelent *rel; | 246 arelent *rel; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 nlm_swap_fixed_header_out, | 421 nlm_swap_fixed_header_out, |
422 nlm_i386_write_external, | 422 nlm_i386_write_external, |
423 0, /* Write_export. */ | 423 0, /* Write_export. */ |
424 }; | 424 }; |
425 | 425 |
426 #define TARGET_LITTLE_NAME "nlm32-i386" | 426 #define TARGET_LITTLE_NAME "nlm32-i386" |
427 #define TARGET_LITTLE_SYM nlmNAME (i386_vec) | 427 #define TARGET_LITTLE_SYM nlmNAME (i386_vec) |
428 #define TARGET_BACKEND_DATA & nlm32_i386_backend | 428 #define TARGET_BACKEND_DATA & nlm32_i386_backend |
429 | 429 |
430 #include "nlm-target.h" | 430 #include "nlm-target.h" |
OLD | NEW |