summaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2013-08-27 01:06:43 +0000
committerAlan Modra <amodra@bigpond.net.au>2013-08-27 01:06:43 +0000
commitfb009b0246de0c65c2aed80f012805f656f88f91 (patch)
treefa7bbc487ec69118c3cea15a66e8d16ec3882cab /bfd/elfxx-target.h
parent3df0792ff3de8141d53ac0e4c36266094bc3483e (diff)
downloadbinutils-redhat-fb009b0246de0c65c2aed80f012805f656f88f91.tar.gz
* elf-bfd.h (struct elf_backend_data): Remove as_needed_cleanup.
Add notice_as_needed. * elf64-ppc.c (elf_backend_as_needed_cleanup): Don't define. (elf_backend_notice_as_needed): Define. (ppc64_elf_as_needed_cleanup): Rename and adjust.. (ppc64_elf_notice_as_needed): ..to this. * elflink.c (_bfd_elf_notice_as_needed): New function, extracted.. (elf_link_add_object_symbols): ..from here. * elfxx-target.h (elf_backend_as_needed_cleanup): Don't define. (elf_backend_notice_as_needed): Define.. (elfNN_bed): ..and use here.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 86c9b1bad4..d42ce26fdd 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -424,8 +424,8 @@
#ifndef elf_backend_check_directives
#define elf_backend_check_directives 0
#endif
-#ifndef elf_backend_as_needed_cleanup
-#define elf_backend_as_needed_cleanup 0
+#ifndef elf_backend_notice_as_needed
+#define elf_backend_notice_as_needed _bfd_elf_notice_as_needed
#endif
#ifndef elf_backend_adjust_dynamic_symbol
#define elf_backend_adjust_dynamic_symbol 0
@@ -705,7 +705,7 @@ static struct elf_backend_data elfNN_bed =
elf_backend_relocs_compatible,
elf_backend_check_relocs,
elf_backend_check_directives,
- elf_backend_as_needed_cleanup,
+ elf_backend_notice_as_needed,
elf_backend_adjust_dynamic_symbol,
elf_backend_always_size_sections,
elf_backend_size_dynamic_sections,