diff options
author | Alan Modra <amodra@gmail.com> | 2004-08-09 03:14:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-08-09 03:14:12 +0000 |
commit | ccfa59eaa0952fc0b0476fd3ab2e9e0ccd4c799e (patch) | |
tree | 6c0fd787b2ef898e452318f07d4cf7f36b0ef8c7 /bfd/elflink.c | |
parent | f2420beaba740ef570477bd4c95739fd30978aee (diff) | |
download | gdb-ccfa59eaa0952fc0b0476fd3ab2e9e0ccd4c799e.zip gdb-ccfa59eaa0952fc0b0476fd3ab2e9e0ccd4c799e.tar.gz gdb-ccfa59eaa0952fc0b0476fd3ab2e9e0ccd4c799e.tar.bz2 |
bfd/
* elf-bfd.h (_bfd_elf_gc_mark): Declare.
* elflink.c (elf_link_input_bfd): Formatting.
(_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
all callers.
* elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
(link_hash_newfunc): Don't set it.
(ppc64_elf_copy_indirect_symbol): Nor copy it.
(ppc64_elf_mark_entry_syms): Delete.
(ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
sections. Use get_opd_info.
* elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
ld/
* emultempl/ppc64elf.em (ppc_after_open): Delete.
(LDEMUL_AFTER_OPEN): Don't define.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 5eb0c93..7c7414a 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -6710,10 +6710,9 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) } else if (complain) { - char *r_sec - = bfd_get_section_ident (o); - char *d_sec - = bfd_get_section_ident (sec); + char *r_sec = bfd_get_section_ident (o); + char *d_sec = bfd_get_section_ident (sec); + finfo->info->callbacks->error_handler (LD_DEFINITION_IN_DISCARDED_SECTION, _("`%T' referenced in section `%s' of %B: " @@ -8366,10 +8365,10 @@ typedef asection * (*gc_mark_hook_fn) (asection *, struct bfd_link_info *, Elf_Internal_Rela *, struct elf_link_hash_entry *, Elf_Internal_Sym *); -static bfd_boolean -elf_gc_mark (struct bfd_link_info *info, - asection *sec, - gc_mark_hook_fn gc_mark_hook) +bfd_boolean +_bfd_elf_gc_mark (struct bfd_link_info *info, + asection *sec, + gc_mark_hook_fn gc_mark_hook) { bfd_boolean ret; asection *group_sec; @@ -8379,7 +8378,7 @@ elf_gc_mark (struct bfd_link_info *info, /* Mark all the sections in the group. */ group_sec = elf_section_data (sec)->next_in_group; if (group_sec && !group_sec->gc_mark) - if (!elf_gc_mark (info, group_sec, gc_mark_hook)) + if (!_bfd_elf_gc_mark (info, group_sec, gc_mark_hook)) return FALSE; /* Look through the section relocs. */ @@ -8460,7 +8459,7 @@ elf_gc_mark (struct bfd_link_info *info, { if (bfd_get_flavour (rsec->owner) != bfd_target_elf_flavour) rsec->gc_mark = 1; - else if (!elf_gc_mark (info, rsec, gc_mark_hook)) + else if (!_bfd_elf_gc_mark (info, rsec, gc_mark_hook)) { ret = FALSE; goto out2; @@ -8767,7 +8766,7 @@ bfd_elf_gc_sections (bfd *abfd, struct bfd_link_info *info) EH frame section. */ if (strcmp (o->name, ".eh_frame") == 0) o->gc_mark = 1; - else if (!elf_gc_mark (info, o, gc_mark_hook)) + else if (!_bfd_elf_gc_mark (info, o, gc_mark_hook)) return FALSE; } } |