aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-strtab.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-01-11 14:09:59 +0000
committerAlan Modra <amodra@gmail.com>2013-01-11 14:09:59 +0000
commit02be4619f1326faebdf539a45539ba83e689470c (patch)
tree4203b2174dfb31c95a954ea839f6d4bf207ff457 /bfd/elf-strtab.c
parenta4542f1b2305d1ebb7f9f5e9c88e6af826923452 (diff)
downloadgdb-02be4619f1326faebdf539a45539ba83e689470c.zip
gdb-02be4619f1326faebdf539a45539ba83e689470c.tar.gz
gdb-02be4619f1326faebdf539a45539ba83e689470c.tar.bz2
* elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
* elf-strtab.c (_bfd_elf_strtab_refcount): New function. * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
Diffstat (limited to 'bfd/elf-strtab.c')
-rw-r--r--bfd/elf-strtab.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elf-strtab.c b/bfd/elf-strtab.c
index 1526755..45743f6 100644
--- a/bfd/elf-strtab.c
+++ b/bfd/elf-strtab.c
@@ -201,6 +201,12 @@ _bfd_elf_strtab_delref (struct elf_strtab_hash *tab, bfd_size_type idx)
--tab->array[idx]->refcount;
}
+unsigned int
+_bfd_elf_strtab_refcount (struct elf_strtab_hash *tab, bfd_size_type idx)
+{
+ return tab->array[idx]->refcount;
+}
+
void
_bfd_elf_strtab_clear_refs (struct elf_strtab_hash *tab, bfd_size_type idx)
{