aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-01-16 22:48:57 +0000
committerIan Lance Taylor <ian@airs.com>1997-01-16 22:48:57 +0000
commitdb109ca2d80f4788e2497ba3575ae110d495f8ec (patch)
treeabcc26254fdfd56c45158897e39750ca777bb64a /bfd/elflink.h
parentc7f8d0a5247e1da6bb295e386d9be74f0e16389b (diff)
downloadgdb-db109ca2d80f4788e2497ba3575ae110d495f8ec.zip
gdb-db109ca2d80f4788e2497ba3575ae110d495f8ec.tar.gz
gdb-db109ca2d80f4788e2497ba3575ae110d495f8ec.tar.bz2
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
auxiliary_filters parameter to be const char * const *. Accept a NULL terminated array. * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. (bfd_elf32_size_dynamic_sections): Update declaration. * bfd-in2.h: Rebuild.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 75da5a5..86352f0 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -1354,13 +1354,13 @@ static const size_t elf_buckets[] =
boolean
NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
export_dynamic, filter_shlib,
- auxiliary_filter_shlib, info, sinterpptr)
+ auxiliary_filters, info, sinterpptr)
bfd *output_bfd;
const char *soname;
const char *rpath;
boolean export_dynamic;
const char *filter_shlib;
- const char *auxiliary_filter_shlib;
+ const char * const *auxiliary_filters;
struct bfd_link_info *info;
asection **sinterpptr;
{
@@ -1448,15 +1448,20 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
return false;
}
- if (auxiliary_filter_shlib != NULL)
+ if (auxiliary_filters != NULL)
{
- bfd_size_type indx;
+ const char * const *p;
- indx = _bfd_stringtab_add (elf_hash_table (info)->dynstr,
- auxiliary_filter_shlib, true, true);
- if (indx == (bfd_size_type) -1
- || ! elf_add_dynamic_entry (info, DT_AUXILIARY, indx))
- return false;
+ for (p = auxiliary_filters; *p != NULL; p++)
+ {
+ bfd_size_type indx;
+
+ indx = _bfd_stringtab_add (elf_hash_table (info)->dynstr,
+ *p, true, true);
+ if (indx == (bfd_size_type) -1
+ || ! elf_add_dynamic_entry (info, DT_AUXILIARY, indx))
+ return false;
+ }
}
/* Find all symbols which were defined in a dynamic object and make