aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-06-16 15:16:19 +0100
committerNick Clifton <nickc@redhat.com>2017-06-16 15:16:19 +0100
commit4b48e2f6a50e85e5acc316289c4a6af693ad98f0 (patch)
tree693c8e311f4b9d1397b957c62e58ecf9d50cc819 /bfd/elflink.c
parent7dba9362c172f1073487536eb137feb2da30b0ff (diff)
downloadgdb-4b48e2f6a50e85e5acc316289c4a6af693ad98f0.zip
gdb-4b48e2f6a50e85e5acc316289c4a6af693ad98f0.tar.gz
gdb-4b48e2f6a50e85e5acc316289c4a6af693ad98f0.tar.bz2
Fixing linking configure generated tests of ifunc support.
* elflink.c (bfd_elf_size_dynsym_hash_dynstr): Do not fail if the bucketlist is empty because there are no symbols to add to the list.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 1a83b88..e35ec63 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -6940,7 +6940,7 @@ bfd_elf_size_dynsym_hash_dynstr (bfd *output_bfd, struct bfd_link_info *info)
= compute_bucket_count (info, hashcodes, nsyms, 0);
free (hashcodes);
- if (bucketcount == 0)
+ if (bucketcount == 0 && nsyms > 0)
return FALSE;
elf_hash_table (info)->bucketcount = bucketcount;