summaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2006-07-19 01:50:23 +0000
committerAlan Modra <amodra@bigpond.net.au>2006-07-19 01:50:23 +0000
commitf30e936afa2560c2b4ec91ad44de0fc0ee6328e8 (patch)
tree2e4069fa26015d61c259c4a9c6597d191af6f6c4 /bfd/bfd-in.h
parent46abbdd5b1af0de57f54376fdc910c5b4aa80739 (diff)
downloadgdb-f30e936afa2560c2b4ec91ad44de0fc0ee6328e8.tar.gz
bfd/
* bfd-in.h (enum notice_asneeded_action): Define. * bfd-in2.h: Regenerate. * elflink.c (elf_link_add_object_symbols): Call linker "notice" function with NULL name for as-needed handling. ld/ * ld.h (handle_asneeded_cref): Declare. * ldcref.c: Include objalloc.h. (old_table, old_count, old_tab, alloc_mark): New variables. (tabsize, entsize, refsize, old_symcount): Likewise. (add_cref): Use bfd_hash_allocate for refs. (handle_asneeded_cref): New function. * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index ff9dcd604fa..6ceb0dbdac3 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -638,6 +638,12 @@ enum dynamic_lib_link_class {
DYN_NO_NEEDED = 8
};
+enum notice_asneeded_action {
+ notice_as_needed,
+ notice_not_needed,
+ notice_needed
+};
+
extern bfd_boolean bfd_elf_record_link_assignment
(bfd *, struct bfd_link_info *, const char *, bfd_boolean,
bfd_boolean);