tag 632671 + patch thanks On Mon, Jul 04, 2011 at 11:31:36PM +0200, Aurelien Jarno wrote: > On Mon, Jul 04, 2011 at 08:31:32PM +0200, Christoph Egger wrote: > > Package: binutils > > Version: 2.21.52.20110703-1 > > Severity: serious > > > > Bug can e.g. be seen when building pdfgrep: > > > > dpkg-shlibdeps: error: couldn't find library libpoppler.so.13 needed by > > debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: ''). > > dpkg-shlibdeps: error: couldn't find library libstdc++.so.6 needed by > > debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: ''). > > dpkg-shlibdeps: error: couldn't find library libm.so.1 needed by > > debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: ''). > > dpkg-shlibdeps: error: couldn't find library libgcc_s.so.1 needed by > > debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: ''). > > dpkg-shlibdeps: error: couldn't find library libc.so.0.1 needed by > > debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: ''). > > dpkg-shlibdeps: error: Cannot continue due to the errors listed above. > > Note: libraries are not searched in other binary packages that do not have > > any shlibs or symbols file. > > > > % /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep > > % echo $? > > 1 > > > > ==== > > > > after downgrading and rebuilding > > > > % /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep > > % echo $? > > 0 > > > > ==== > > > > It's perfectly reproducible (happend on the buildd fano and after > > upgrading my private vm it is visible there as well) > > > > The issue comes from this bfd commit: > > 2011-06-25 H.J. Lu <hongjiu...@intel.com> > > * elf64-x86-64.c (elf_backend_post_process_headers): Don't > define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM. >
The following patch, from upstream, fixes the problem: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6d9f246..2fc3d26 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-07-05 H.J. Lu <hongjiu...@intel.com> + + * elf64-x86-64.c (elf_backend_post_process_headers): Always + define to _bfd_elf_set_osabi. + 2011-07-03 Samuel Thibault <samuel.thiba...@gnu.org> Thomas Schwinge <tho...@schwinge.name> diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index ca480ab..12748d8 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -4940,7 +4940,6 @@ static const struct bfd_elf_special_section #define elf_backend_hash_symbol \ elf_x86_64_hash_symbol -#undef elf_backend_post_process_headers #define elf_backend_post_process_headers _bfd_elf_set_osabi #include "elf64-target.h" @@ -4958,8 +4957,6 @@ static const struct bfd_elf_special_section #undef elf64_bed #define elf64_bed elf64_x86_64_fbsd_bed -#undef elf_backend_post_process_headers - #include "elf64-target.h" /* Solaris 2 support. */ @@ -5018,9 +5015,6 @@ elf64_l1om_elf_object_p (bfd *abfd) #undef elf_backend_object_p #define elf_backend_object_p elf64_l1om_elf_object_p -#undef elf_backend_post_process_headers -#define elf_backend_post_process_headers _bfd_elf_set_osabi - #undef elf_backend_static_tls_alignment #undef elf_backend_want_plt_sym @@ -5041,8 +5035,6 @@ elf64_l1om_elf_object_p (bfd *abfd) #undef elf64_bed #define elf64_bed elf64_l1om_fbsd_bed -#undef elf_backend_post_process_headers - #include "elf64-target.h" /* 32bit x86-64 support. */ @@ -5079,9 +5071,6 @@ elf32_x86_64_elf_object_p (bfd *abfd) #undef ELF_OSABI -#undef elf_backend_post_process_headers -#define elf_backend_post_process_headers _bfd_elf_set_osabi - #undef elf_backend_object_p #define elf_backend_object_p \ elf32_x86_64_elf_object_p -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurel...@aurel32.net http://www.aurel32.net -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org