aboutsummaryrefslogtreecommitdiff
path: root/bfd/libelf.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-16 00:01:32 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-16 00:01:32 +0000
commitc1f84521bf0f5f12617ac204d78b5b9b4c72a8b9 (patch)
tree3805856c968ac3fce3ba35bd30ab60a9d5738a21 /bfd/libelf.h
parent33b90e52657a579d9c613db8ac06e5c604e34818 (diff)
downloadgdb-c1f84521bf0f5f12617ac204d78b5b9b4c72a8b9.zip
gdb-c1f84521bf0f5f12617ac204d78b5b9b4c72a8b9.tar.gz
gdb-c1f84521bf0f5f12617ac204d78b5b9b4c72a8b9.tar.bz2
* libelf.h (struct elf_obj_tdata): New field dt_needed_name.
(elf_dt_needed_name): New accessor macro. * elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name is set, use that instead of the filename for the DT_NEEDED dynamic entry. * elf.c (bfd_elf_set_dt_needed_name): New function. * bfd-in.h (bfd_elf_set_dt_needed_name): Declare. * bfd-in2.h: Rebuilt.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r--bfd/libelf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h
index 6850aba..2838a5e 100644
--- a/bfd/libelf.h
+++ b/bfd/libelf.h
@@ -417,6 +417,12 @@ struct elf_obj_tdata
minus the sh_info field of the symbol table header. */
struct elf_link_hash_entry **sym_hashes;
+ /* The linker ELF emulation code needs to let the backend ELF linker
+ know what filename should be used for a dynamic object if the
+ dynamic object is found using a search. This field is used to
+ hold that information. */
+ const char *dt_needed_name;
+
/* Irix 5 often screws up the symbol table, sorting local symbols
after global symbols. This flag is set if the symbol table in
this BFD appears to be screwed up. If it is, we ignore the
@@ -441,6 +447,7 @@ struct elf_obj_tdata
#define elf_gp(bfd) (elf_tdata(bfd) -> gp)
#define elf_gp_size(bfd) (elf_tdata(bfd) -> gp_size)
#define elf_sym_hashes(bfd) (elf_tdata(bfd) -> sym_hashes)
+#define elf_dt_needed_name(bfd) (elf_tdata(bfd) -> dt_needed_name)
#define elf_bad_symtab(bfd) (elf_tdata(bfd) -> bad_symtab)
extern char * elf_string_from_elf_section PARAMS ((bfd *, unsigned, unsigned));