summaryrefslogtreecommitdiff
path: root/ld/ld.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
commit9738b005c1fce2406ca2e416bc8b0823c309932d (patch)
tree31054a923f50e3068555d317101a45c302256155 /ld/ld.h
parent8726ce3342bd6a814d1b69ab7c6e6cd549a9cd0c (diff)
downloadbinutils-redhat-9738b005c1fce2406ca2e416bc8b0823c309932d.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 'ld/ld.h')
-rw-r--r--ld/ld.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ld.h b/ld/ld.h
index 174e5b9f20..0b574d5eea 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -1,6 +1,6 @@
/* ld.h -- general linker header file
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005
+ 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -288,6 +288,7 @@ extern int parsing_defsym;
extern int yyparse (void);
extern void add_cref (const char *, bfd *, asection *, bfd_vma);
+extern bfd_boolean handle_asneeded_cref (bfd *, enum notice_asneeded_action);
extern void output_cref (FILE *);
extern void check_nocrossrefs (void);
extern void ld_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;