Deleted Added
sdiff udiff text old ( 78828 ) new ( 89857 )
full compact
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
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);
82 (*_bfd_error_handler) (_("%s: Relocations in generic ELF (EM: %d)"),
83 bfd_archive_filename (abfd),
84 ehdrp->e_machine);
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 ---