aboutsummaryrefslogtreecommitdiff
path: root/include/bfdlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bfdlink.h')
-rw-r--r--include/bfdlink.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index 55020e3..b92ef54 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -671,7 +671,7 @@ struct bfd_link_info
/* Some forward-definitions used by some callbacks. */
struct elf_strtab_hash;
-struct elf_sym_strtab;
+struct elf_internal_sym;
/* This structures holds a set of callback functions. These are called
by the BFD linker routines. */
@@ -795,11 +795,17 @@ struct bfd_link_callbacks
asection * current_section, asection * previous_section,
bfd_boolean new_segment);
/* This callback provides a chance for callers of the BFD to examine the
- ELF string table and symbol table once they are complete and indexes and
- offsets assigned. */
+ ELF (dynamic) string table once it is complete. */
void (*examine_strtab)
- (struct elf_sym_strtab *syms, bfd_size_type symcount,
- struct elf_strtab_hash *symstrtab);
+ (struct elf_strtab_hash *symstrtab);
+ /* This callback is called just before a symbol is swapped out, so that the
+ CTF machinery can look up symbols during construction. The name is
+ already an external strtab offset at this point. */
+ void (*ctf_new_symbol)
+ (int symidx, struct elf_internal_sym *sym);
+ /* Likewise, for dynamic symbols. */
+ void (*ctf_new_dynsym)
+ (int symidx, struct elf_internal_sym *sym);
/* This callback should emit the CTF section into a non-loadable section in
the output BFD named .ctf or a name beginning with ".ctf.". */
void (*emit_ctf)