Bug#422830: binutils: ld segfaults when linking (C++?) PIC object with non-PIC object

2007-05-14 Thread Sven Neumann
Same problem here, the linker crashes with a segmentation fault.
Downgrading to binutils 2.17cvs20070426-4 fixes it.

The severity of this bug should better be increased so that it doesn't
hit lenny.


Sven




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#422830: binutils: ld segfaults when linking (C++?) PIC object with non-PIC object

2007-05-08 Thread Tommi Vainikainen
Package: binutils
Version: 2.17cvs20070426-5
Severity: normal

I was trying to link PIC object with non-PIC object to create dynamic
library (.so). However after upgrading to -5 ld segfaults with
following backtrace.

Downgrading binutils to -4 is a quick fix for this. Version -4 does
not give segmentation fault in this situation.

Here are commands:

g++ -c  -o a.o a.cpp
g++ -c -fPIC  -o b.o b.cpp
g++ -shared -L. -o ab.so a.o b.o
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make: *** [ab.so] Error 1

Here is a backtrace from core:

(gdb) bt
#0  0xb7e785cc in _bfd_elf_discard_section_eh_frame ()
 from /usr/lib/libbfd-2.17.50.20070426.so
#1  0xb7e675d0 in bfd_elf_discard_info ()
 from /usr/lib/libbfd-2.17.50.20070426.so
#2  0x08066504 in ?? ()
#3  0x080b8640 in ?? ()
#4  0x080ad8c0 in ?? ()
#5  0xbfdd0df8 in ?? ()
#6  0x in ?? ()
(gdb) 


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages binutils depends on:
ii  libc6 2.5-7  GNU C Library: Shared libraries

binutils recommends no packages.

-- no debconf information


ld-segfault-example.tgz
Description: GNU Zip compressed data