tag 632681 + patch
thanks

On Tue, Jul 05, 2011 at 12:13:56AM +0200, Aurelien Jarno wrote:
> On Mon, Jul 04, 2011 at 10:11:03PM +0200, Aurelien Jarno wrote:
> > Package: binutils
> > Version: 2.21.52.20110703-1
> > Severity: important
> > 
> > Since version 2.21.52.20110606-1 binutils is not able to build eglibc
> > anymore, the resulting ld.so just segfaults. 2.21.52.20110703-1 is also
> > affected, but 2.21.51.20110523-1 is not.
> > 
> > See for example:
> > https://buildd.debian.org/status/fetch.php?pkg=eglibc&arch=ia64&ver=2.13-9&stamp=1309759692
> > 
> 
> The regression has been introduced by the following changes:
> 
> 2011-05-25  Tristan Gingold  <ging...@adacore.com>
> 
>       * configure.in (bfd_elf32_ia64_big_vec, bfd_elf32_ia64_hpux_big_vec)
>       (bfd_elf64_ia64_big_vec, bfd_elf64_ia64_hpux_big_vec)
>       (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_vms_vec): Add elfxx-ia64.lo
>       * Makefile.am (BFD64_BACKENDS): Add elfxx-ia64.lo
>       (BFD64_BACKENDS_CFILES): Add elfxx-ia64.c
>       (elf32-ia64.c): Created from elfnn-ia64.c
>       (elf64-ia64.c): Likewise.
>       * elfxx-ia64.h: New file.
>       * elfxx-ia64.c: Split with elfnn-ia64.c.  Keep only the following
>       functions.Includes elfxx-ia64.h.
>       (elfNN_ia64_reloc): Renames to ia64_elf_reloc.  Adjust error message.
>       (IA64_HOWTO): Adjust.
>       (lookup_howto): Renames to ia64_elf_lookup_howto.  Make it public.
>       (elfNN_ia64_reloc_type_lookup): Renames to
>       ia64_elf_reloc_type_lookup. Make it public. Adjust calls.
>       (elfNN_ia64_reloc_name_lookup): Renames to
>       ia64_elf_reloc_name_lookup. Make it public.
>       (elfNN_ia64_relax_br): Renames to ia64_elf_relax_br.  Make it public.
>       (elfNN_ia64_relax_brl): Renames to ia64_elf_relax_brl. Make it
>       public.
>       (elfNN_ia64_relax_ldxmov): Renames to ia64_elf_relax_ldxmov.
>       Move it and make it public.  Move prototype to elfxx-ia64.h
>       (elfNN_ia64_install_value): Renames to ia64_elf_install_value.
>       Move prototype to elfxx-ia64.h
>       * elfnn-ia64.c: New file, split from elfxx-ia64.c.
>       (elfNN_ia64_info_to_howto): Adjust calls.
>       (elfNN_ia64_relax_section): Adjust calls.
>       (count_dyn_reloc): Fix typo.
>       (elfNN_ia64_relocate_section): Adjust calls.
>       (elfNN_ia64_finish_dynamic_symbol): Likewise.
>       (bfd_elfNN_bfd_reloc_type_lookup)
>       (bfd_elfNN_bfd_reloc_name_lookup): Adjust macros.
>       * configure: Regenerate.
>       * Makefile.in: Regenerate.
> 

The following patch, which has already been committed upstream, fixes
the issue.

2011-07-11  H.J. Lu  <hongjiu...@intel.com>

        PR ld/12978
        * elfnn-ia64.c (count_dyn_reloc): Fix a typo.

Index: src/bfd/elfnn-ia64.c
===================================================================
RCS file: /cvs/src/src/bfd/elfnn-ia64.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -p -r1.3 -r1.4
--- src/bfd/elfnn-ia64.c        13 Jun 2011 00:59:15 -0000      1.3
+++ src/bfd/elfnn-ia64.c        11 Jul 2011 13:54:52 -0000      1.4
@@ -2129,7 +2129,7 @@ count_dyn_reloc (bfd *abfd, struct elfNN
       rent->count = 0;
       dyn_i->reloc_entries = rent;
     }
-  rent->reltext |= reltext;
+  rent->reltext = reltext;
   rent->count++;
 
   return TRUE;


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurel...@aurel32.net                 http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to