[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BFD internal error - cross compiler for host i386-openbsd -> targ et spa
From: |
Jordan Hayashi |
Subject: |
BFD internal error - cross compiler for host i386-openbsd -> targ et sparc-netbsd |
Date: |
Fri, 8 Feb 2002 10:04:52 -0800 |
I've never cross-compiled anything before, so it's entirely possible that
this is my problem. However, it asked me to report this bug, so here you go.
Let me know if I'm just completely lost or what. I'm available to do
whatever tests you'd like on request.
Thanks,
Jordan
$ cat test.c
#include <stdio.h>
int main(void)
{
printf("it works!\n");
return 0;
}
$ xgcc test.c -S -o test.s -Icross/include
$ cat test.s
.text
.align 8
LC0:
.ascii "it works!\12\0"
.align 4
.global _main
.type _main,@function
.proc 04
_main:
!#PROLOGUE# 0
save %sp, -104, %sp
!#PROLOGUE# 1
call ___main, 0
nop
sethi %hi(LC0), %o0
or %o0, %lo(LC0), %o0
call _printf, 0
nop
mov 0, %i0
ret
restore
Lfe1:
.size _main,Lfe1-_main
.ident "GCC: (GNU) 3.0"
$ cross/bin/sparc-netbsd-as test.s -o test.sl
$ cross/bin/sparc-netbsd-ld test.sl -L cross/lib -lc
test.sl(.text+0x10): undefined reference to `__main'
cross/bin/sparc-netbsd-ld: BFD internal error, aborting at aoutx.h line 5059
in aout_link_input_section_std
cross/bin/sparc-netbsd-ld: Please report this bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- BFD internal error - cross compiler for host i386-openbsd -> targ et sparc-netbsd,
Jordan Hayashi <=