elf64-gen.c (78828) | elf64-gen.c (89857) |
---|---|
1/* Generic support for 64-bit ELF 2 Copyright 1993, 1995, 1998, 1999, 2001 Free Software Foundation, Inc. 3 4This file is part of BFD, the Binary File Descriptor library. 5 6This program is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2 of the License, or --- 26 unchanged lines hidden (view full) --- 35 complain_overflow_dont, /* complain_on_overflow */ 36 NULL, /* special_function */ 37 "UNKNOWN", /* name */ 38 false, /* partial_inplace */ 39 0, /* src_mask */ 40 0, /* dst_mask */ 41 false); /* pcrel_offset */ 42 | 1/* Generic support for 64-bit ELF 2 Copyright 1993, 1995, 1998, 1999, 2001 Free Software Foundation, Inc. 3 4This file is part of BFD, the Binary File Descriptor library. 5 6This program is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2 of the License, or --- 26 unchanged lines hidden (view full) --- 35 complain_overflow_dont, /* complain_on_overflow */ 36 NULL, /* special_function */ 37 "UNKNOWN", /* name */ 38 false, /* partial_inplace */ 39 0, /* src_mask */ 40 0, /* dst_mask */ 41 false); /* pcrel_offset */ 42 |
43static void elf_generic_info_to_howto 44 PARAMS ((bfd *, arelent *, Elf64_Internal_Rela *)); 45static void elf_generic_info_to_howto_rel 46 PARAMS ((bfd *, arelent *, Elf64_Internal_Rel *)); 47static boolean elf64_generic_link_add_symbols 48 PARAMS ((bfd *, struct bfd_link_info *)); 49 |
|
43static void 44elf_generic_info_to_howto (abfd, bfd_reloc, elf_reloc) 45 bfd *abfd ATTRIBUTE_UNUSED; 46 arelent *bfd_reloc; 47 Elf64_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED; 48{ 49 bfd_reloc->howto = &dummy; 50} --- 16 unchanged lines hidden (view full) --- 67 68 /* Check if there are any relocations. */ 69 for (o = abfd->sections; o != NULL; o = o->next) 70 if ((o->flags & SEC_RELOC) != 0) 71 { 72 Elf_Internal_Ehdr *ehdrp; 73 74 ehdrp = elf_elfheader (abfd); | 50static void 51elf_generic_info_to_howto (abfd, bfd_reloc, elf_reloc) 52 bfd *abfd ATTRIBUTE_UNUSED; 53 arelent *bfd_reloc; 54 Elf64_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED; 55{ 56 bfd_reloc->howto = &dummy; 57} --- 16 unchanged lines hidden (view full) --- 74 75 /* Check if there are any relocations. */ 76 for (o = abfd->sections; o != NULL; o = o->next) 77 if ((o->flags & SEC_RELOC) != 0) 78 { 79 Elf_Internal_Ehdr *ehdrp; 80 81 ehdrp = elf_elfheader (abfd); |
75 if (abfd->my_archive) 76 (*_bfd_error_handler) (_("%s(%s): Relocations in generic ELF (EM: %d)"), 77 bfd_get_filename (abfd->my_archive), 78 bfd_get_filename (abfd), 79 ehdrp->e_machine); 80 else 81 (*_bfd_error_handler) (_("%s: Relocations in generic ELF (EM: %d)"), 82 bfd_get_filename (abfd), 83 ehdrp->e_machine); | 82 (*_bfd_error_handler) (_("%s: Relocations in generic ELF (EM: %d)"), 83 bfd_archive_filename (abfd), 84 ehdrp->e_machine); |
84 85 bfd_set_error (bfd_error_wrong_format); 86 return false; 87 } 88 89 return bfd_elf64_bfd_link_add_symbols (abfd, info); 90} 91 --- 13 unchanged lines hidden --- | 85 86 bfd_set_error (bfd_error_wrong_format); 87 return false; 88 } 89 90 return bfd_elf64_bfd_link_add_symbols (abfd, info); 91} 92 --- 13 unchanged lines hidden --- |