Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <modra@gmail.com>2011-05-17 17:02:16 +0400
committerAlan Modra <modra@gmail.com>2011-05-17 17:02:16 +0400
commit89d3b82ee53a3446b6e5924426793909708ef339 (patch)
tree2ee530398a35463f7f2c636c483cb63e04c3ff89 /include/bfdlink.h
parent64a5e8a9a310936b0da9546c4b264fd7c3cd470a (diff)
PR ld/12760
include/ * bfdlink.h (struct bfd_link_callbacks <notice>): Add "flags" and "string" param. bfd/ * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call. * elflink.c (elf_link_add_object_symbols): Likewise. * linker.c (_bfd_generic_link_add_one_symbol): Likewise. ld/ * ldmain.c (notice): Add "flags" and "string" param. * plugin.c (plugin_notice): Likewise. Handle indirect, warning and constructor syms.
Diffstat (limited to 'include/bfdlink.h')
-rw-r--r--include/bfdlink.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index d3ac8d9fd..bb62fbe34 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -573,10 +573,13 @@ struct bfd_link_callbacks
/* A function which is called when a symbol in notice_hash is
defined or referenced. H is the symbol. ABFD, SECTION and
ADDRESS are the (new) value of the symbol. If SECTION is
- bfd_und_section, this is a reference. */
+ bfd_und_section, this is a reference. FLAGS are the symbol
+ BSF_* flags. STRING is the name of the symbol to indirect to if
+ the sym is indirect, or the warning string if a warning sym. */
bfd_boolean (*notice)
(struct bfd_link_info *, struct bfd_link_hash_entry *h,
- bfd *abfd, asection *section, bfd_vma address);
+ bfd *abfd, asection *section, bfd_vma address, flagword flags,
+ const char *string);
/* Error or warning link info message. */
void (*einfo)
(const char *fmt, ...);