mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2017-06-16 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2017-06-16 Alan Modra <amodra@gmail.com>
|
2017-06-16 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR ld/20022
|
PR ld/20022
|
||||||
|
@ -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);
|
= compute_bucket_count (info, hashcodes, nsyms, 0);
|
||||||
free (hashcodes);
|
free (hashcodes);
|
||||||
|
|
||||||
if (bucketcount == 0)
|
if (bucketcount == 0 && nsyms > 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
elf_hash_table (info)->bucketcount = bucketcount;
|
elf_hash_table (info)->bucketcount = bucketcount;
|
||||||
|
Reference in New Issue
Block a user