From 2ccdbfcc9a284fe6510a68c9e71e265827c7d8ff Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 14 Jul 2006 13:48:06 +0000 Subject: [PATCH] * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Fix cinfo.shift2 value. --- bfd/ChangeLog | 4 ++++ bfd/elflink.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3863a04..07bf4c4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2006-07-14 Jakub Jelinek + + * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Fix cinfo.shift2 value. + 2006-07-14 Mark Kettenis * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Move declarations diff --git a/bfd/elflink.c b/bfd/elflink.c index b302b35..c52b42e 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -6079,7 +6079,7 @@ bfd_elf_size_dynsym_hash_dynstr (bfd *output_bfd, struct bfd_link_info *info) else cinfo.shift1 = 5; cinfo.mask = (1 << cinfo.shift1) - 1; - cinfo.shift2 = maskbitslog2 + cinfo.shift1; + cinfo.shift2 = maskbitslog2; cinfo.maskbits = 1 << maskbitslog2; maskwords = 1 << (maskbitslog2 - cinfo.shift1); amt = bucketcount * sizeof (unsigned long int) * 2; -- 2.7.4