------- Additional Comments From mkoeppe at gmx dot de  2006-06-08 19:37 -------
Created an attachment (id=1066)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1066&action=view)
object file that fails linking

ok, here is my object file from this tiny program:
int main() { return 3; }

The gcc link command with -v shows:
$ LANG=C i586-pc-interix3-gcc -v  hello.o
Using built-in specs.
Target: i586-pc-interix3
Configured with: ../src/configure --target=i586-pc-interix3
--enable-languages=c --enable-threads=no --disable-shared --with-stabs
--enable-nls --disable-libssp --with-gnu-as --with-gnu-ld
Thread model: single
gcc version 4.1.0
 /usr/local/libexec/gcc/i586-pc-interix3/4.1.0/collect2 -stack 0x400000,0x10000
-subsystem posix
/usr/local/lib/gcc/i586-pc-interix3/4.1.0/../../../../i586-pc-interix3/lib/crt0.o
-L/usr/local/lib/gcc/i586-pc-interix3/4.1.0
-L/usr/local/lib/gcc/i586-pc-interix3/4.1.0/../../../../i586-pc-interix3/lib
hello.o -lgcc -lc -lpsxdll -lc -lpsxdll -v -lgcc
collect2 version 4.1.0 (i386 Interix)
/usr/local/lib/gcc/i586-pc-interix3/4.1.0/../../../../i586-pc-interix3/bin/ld
-stack 0x400000,0x10000 -subsystem posix
/usr/local/lib/gcc/i586-pc-interix3/4.1.0/../../../../i586-pc-interix3/lib/crt0.o
-L/usr/local/lib/gcc/i586-pc-interix3/4.1.0
-L/usr/local/lib/gcc/i586-pc-interix3/4.1.0/../../../../i586-pc-interix3/lib
hello.o -lgcc -lc -lpsxdll -lc -lpsxdll -v -lgcc
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'


-- 


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.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to