This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can I link a.out .o with ELF?


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)"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]