diff options
author | Alan Modra <amodra@gmail.com> | 2011-05-17 13:02:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-05-17 13:02:18 +0000 |
commit | 16d96b5b8fc6ea4aeccccfd805a7049438ad1f6b (patch) | |
tree | a7d64dee0a9e5322558b8fbd450a04b715f4d1f7 /include | |
parent | cd3da28e23c6fe0f229cd09975b28c6b3b1d8779 (diff) | |
download | fsf-binutils-gdb-16d96b5b8fc6ea4aeccccfd805a7049438ad1f6b.zip fsf-binutils-gdb-16d96b5b8fc6ea4aeccccfd805a7049438ad1f6b.tar.gz fsf-binutils-gdb-16d96b5b8fc6ea4aeccccfd805a7049438ad1f6b.tar.bz2 |
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')
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/bfdlink.h | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 1f8b378..7fd79a0 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,9 @@ +2011-05-17 Alan Modra <amodra@gmail.com> + + PR ld/12760 + * bfdlink.h (struct bfd_link_callbacks <notice>): Add "flags" and + "string" param. + 2011-05-16 Alan Modra <amodra@gmail.com> * bfdlink.h (struct bfd_link_hash_entry): Remove u.undef.weak field. diff --git a/include/bfdlink.h b/include/bfdlink.h index d3ac8d9..bb62fbe 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, ...); |