diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-07-20 03:16:18 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-07-20 03:16:18 +0000 |
commit | 74816898980f352e2b94c71e5afbcb109f2b50b0 (patch) | |
tree | 59e31d9263b3792f5b4c27ab6f31be6f70b4d209 /bfd/elf.c | |
parent | 019148e439ad25d40097e97ca96fa39c01c9f2b6 (diff) | |
download | gdb-74816898980f352e2b94c71e5afbcb109f2b50b0.zip gdb-74816898980f352e2b94c71e5afbcb109f2b50b0.tar.gz gdb-74816898980f352e2b94c71e5afbcb109f2b50b0.tar.bz2 |
2000-07-19 H.J. Lu <hjl@gnu.org>
* bfd-in.h (bfd_elf_set_dt_needed_soname): New.
* bfd-in2.h: Rebuild.
* elf-bfd.h (elf_obj_tdata): Add dt_soname.
(elf_dt_soname): New.
* elf.c (bfd_elf_set_dt_needed_soname): New.
* elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
entry if the shared object loaded by DT_NEEDED is used to
resolve the reference in a regular object.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1050,6 +1050,16 @@ bfd_elf_set_dt_needed_name (abfd, name) elf_dt_name (abfd) = name; } +void +bfd_elf_set_dt_needed_soname (abfd, name) + bfd *abfd; + const char *name; +{ + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour + && bfd_get_format (abfd) == bfd_object) + elf_dt_soname (abfd) = name; +} + /* Get the list of DT_NEEDED entries for a link. This is a hook for the linker ELF emulation code. */ |