This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Can I link a.out .o with ELF?
- To: binutils at sourceware dot cygnus dot com
- Subject: Can I link a.out .o with ELF?
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Sun, 4 Jun 2000 18:07:39 -0700
I believe I used to be able to link a .o file in a.out on an ELF
system. But now I got
# gcc -o aout x.o
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
on Linux/ia32/ELF. Any ideas?
Thanks.
--
H.J. Lu (hjl@gnu.org)
x.o
.file "x.c"
.version "01.01"
gcc2_compiled.:
.text
.LC0:
.string "hello\n"
.text
.align 8
.globl main
main:
pushl %ebp
movl %esp,%ebp
subl $8,%esp
addl $-12,%esp
pushl $.LC0
call printf
addl $16,%esp
leave
ret
.ident "GCC: (GNU) 2.95.3 20000503/Linux (prerelease)"