Hi all,
To update on my situation, I figured out that:
arm-agb-elf-gcc -nostartfiles -T lnkscript crt0.o -o test.elf main.c
generates an elf file without any warnings. So I'm telling the
compiler to not use the default crt0.o files and including my own by
specifying crt0.o right? I think this should be right now, if I
understand it correctly.
Joey
--- In gbadev@y..., Tom Badran <tb100@d...> wrote:
> I already answered this for you in a private email. The current
linux devkit
> that uses gcc 3.1 has some issues which i have been unable to track
down and
> fix. You need to supply your own crt0 and lnkscript and it will work
fine.
>
> On Sunday 21 Jul 2002 11:17 am, NighTiger wrote:
> > Hi guys,
> > whit the help of SlasherX and dovoto I find the problem of devkitadv.
> >
> > This's a test:
> >
> > I create a file main.c and put into
> >
> > int main()
> > {
> > return 0;
> > }
> >
> > then I compile it and return this errors
> >
> > ________________________________________________
> > gba@debian:~/dev/bin$ gcc main.c -o main.o
> >
> >
/usr/local/devkitadv/lib/gcc-lib/arm-agb-elf/3.1/../../../../arm-agb-elf/bi
> >n/ld: section .iwram [08000388 -> 0800044f] overlaps section .init
[08000374
> > -> 0800038f]
> >
/usr/local/devkitadv/lib/gcc-lib/arm-agb-elf/3.1/../../../../arm-agb-elf/li
> >b/crt0.o: In function `jump_intr':
> >
/usr/local/devkitadv/lib/gcc-lib/arm-agb-elf/3.1/../../../../arm-agb-elf/li
> >b/crt0.o(.iwram+0xc4): undefined reference to `IntrTable'
> > collect2: ld returned 1 exit status
>
> --
> Email: tb100@d... || Jabber: tombadran@j...
> Homepage: http://www.doc.ic.ac.uk/~tb100