| OLD | NEW |
| 1 /* BFD back-end for VERSAdos-E objects. | 1 /* BFD back-end for VERSAdos-E objects. |
| 2 Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, | 2 Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
| 3 2006, 2007, 2009, 2010, 2011 Free Software Foundation, Inc. | 3 2006, 2007, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. |
| 4 Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>. | 4 Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>. |
| 5 | 5 |
| 6 Versados is a Motorola trademark. | 6 Versados is a Motorola trademark. |
| 7 | 7 |
| 8 This file is part of BFD, the Binary File Descriptor library. | 8 This file is part of BFD, the Binary File Descriptor library. |
| 9 | 9 |
| 10 This program is free software; you can redistribute it and/or modify | 10 This program is free software; you can redistribute it and/or modify |
| 11 it under the terms of the GNU General Public License as published by | 11 it under the terms of the GNU General Public License as published by |
| 12 the Free Software Foundation; either version 3 of the License, or | 12 the Free Software Foundation; either version 3 of the License, or |
| 13 (at your option) any later version. | 13 (at your option) any later version. |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 (void) size; | 280 (void) size; |
| 281 start = get_4 (&ptr); | 281 start = get_4 (&ptr); |
| 282 (void) start; | 282 (void) start; |
| 283 break; | 283 break; |
| 284 case ESD_STD_REL_SEC: | 284 case ESD_STD_REL_SEC: |
| 285 case ESD_SHRT_REL_SEC: | 285 case ESD_SHRT_REL_SEC: |
| 286 sec->size = get_4 (&ptr); | 286 sec->size = get_4 (&ptr); |
| 287 sec->flags |= SEC_ALLOC; | 287 sec->flags |= SEC_ALLOC; |
| 288 break; | 288 break; |
| 289 case ESD_XDEF_IN_ABS: | 289 case ESD_XDEF_IN_ABS: |
| 290 » sec = (asection *) & bfd_abs_section; | 290 » sec = bfd_abs_section_ptr; |
| 291 case ESD_XDEF_IN_SEC: | 291 case ESD_XDEF_IN_SEC: |
| 292 { | 292 { |
| 293 int snum = VDATA (abfd)->def_idx++; | 293 int snum = VDATA (abfd)->def_idx++; |
| 294 bfd_vma val; | 294 bfd_vma val; |
| 295 | 295 |
| 296 get_10 (&ptr, name); | 296 get_10 (&ptr, name); |
| 297 val = get_4 (&ptr); | 297 val = get_4 (&ptr); |
| 298 if (pass == 1) | 298 if (pass == 1) |
| 299 /* Just remember the symbol. */ | 299 /* Just remember the symbol. */ |
| 300 VDATA (abfd)->stringlen += strlen (name) + 1; | 300 VDATA (abfd)->stringlen += strlen (name) + 1; |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 src = section->relocation; | 761 src = section->relocation; |
| 762 if (!EDATA (abfd, section->target_index).donerel) | 762 if (!EDATA (abfd, section->target_index).donerel) |
| 763 { | 763 { |
| 764 EDATA (abfd, section->target_index).donerel = 1; | 764 EDATA (abfd, section->target_index).donerel = 1; |
| 765 /* Translate from indexes to symptr ptrs. */ | 765 /* Translate from indexes to symptr ptrs. */ |
| 766 for (count = 0; count < section->reloc_count; count++) | 766 for (count = 0; count < section->reloc_count; count++) |
| 767 { | 767 { |
| 768 int esdid = (int) (size_t) src[count].sym_ptr_ptr; | 768 int esdid = (int) (size_t) src[count].sym_ptr_ptr; |
| 769 | 769 |
| 770 if (esdid == 0) | 770 if (esdid == 0) |
| 771 » src[count].sym_ptr_ptr = bfd_abs_section.symbol_ptr_ptr; | 771 » src[count].sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr; |
| 772 else if (esdid < ES_BASE) | 772 else if (esdid < ES_BASE) |
| 773 { | 773 { |
| 774 /* Section relative thing. */ | 774 /* Section relative thing. */ |
| 775 struct esdid *e = &EDATA (abfd, esdid - 1); | 775 struct esdid *e = &EDATA (abfd, esdid - 1); |
| 776 | 776 |
| 777 src[count].sym_ptr_ptr = e->section->symbol_ptr_ptr; | 777 src[count].sym_ptr_ptr = e->section->symbol_ptr_ptr; |
| 778 } | 778 } |
| 779 else | 779 else |
| 780 src[count].sym_ptr_ptr = symbols + esdid - ES_BASE; | 780 src[count].sym_ptr_ptr = symbols + esdid - ES_BASE; |
| 781 } | 781 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 BFD_JUMP_TABLE_SYMBOLS (versados), | 869 BFD_JUMP_TABLE_SYMBOLS (versados), |
| 870 BFD_JUMP_TABLE_RELOCS (versados), | 870 BFD_JUMP_TABLE_RELOCS (versados), |
| 871 BFD_JUMP_TABLE_WRITE (versados), | 871 BFD_JUMP_TABLE_WRITE (versados), |
| 872 BFD_JUMP_TABLE_LINK (versados), | 872 BFD_JUMP_TABLE_LINK (versados), |
| 873 BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), | 873 BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), |
| 874 | 874 |
| 875 NULL, | 875 NULL, |
| 876 | 876 |
| 877 NULL | 877 NULL |
| 878 }; | 878 }; |
| OLD | NEW |