bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/2729] New: ld terminated with signal 11 [Segmentation fault]


From: mkoeppe at gmx dot de
Subject: [Bug ld/2729] New: ld terminated with signal 11 [Segmentation fault]
Date: 6 Jun 2006 17:12:02 -0000

Hello,

I tried to build a cross compiler on linux to build tools for interix 3.5.
I managed to build such a compiler and linker, and the compiler seems to work
fine, but the linker doesn't.

Linux platform is Debian etch, kernel 2.6.11, gcc-4.0.

I used binutils 2.16.91 20060413 (currently ships with debian etch) and
configured with
--target=i586-pc-interix3 --with-gnu-as --with-gnu-ld

For cross-gcc, I used gcc-4.1.0 and configured with
--target=i586-pc-interix3 --enable-languages=c --enable-threads=no
--disable-shared --with-stabs --enable-nls --disable-libssp --with-gnu-as
--with-gnu-ld

I tried the following short program:
int main()
{
    return 3;
}

and got:
$ i586-pc-interix3-gcc -c hello.c
so compiling is ok, but ...

$ i586-pc-interix3-gcc hello.o
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/local/lib/gcc/i586-pc-interix3/4.1.0/libgcc.a(__main.o): In function
`__do_global_ctors':
/srv/src/gcc-4.1/build2/gcc/../../src/gcc/libgcc2.c:1956: undefined reference to
`_atexit'
/usr/local/lib/gcc/i586-pc-interix3/4.1.0/../../../../i586-pc-interix3/lib/libpsxdll.a(PSXDLL.dll.a):(.idata$2+0x0):
undefined reference to `.idata$4'

... linking segfaults.

(The .../lib/libpsxdll.a and all other libs I copied over from an interix 3.5
installation's /usr/lib/* to /usr/local/i586-pc-interix3/lib/*.)

(The only binutils bug related to interix I could find is Bug 324, but it is old
and marked resolved.)

-- 
           Summary: ld terminated with signal 11 [Segmentation fault]
           Product: binutils
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: mkoeppe at gmx dot de
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i586-pc-interix3


http://sourceware.org/bugzilla/show_bug.cgi?id=2729

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]