Hi,
I am encountering a similar bug of overlapping sections:
/usr/local/devkitadv/lib/gcc-lib/arm-agb-elf/3.1/../../../../arm-agb-elf/bin/ld:
section .data [08000384 -> 0800038b] overlaps section .init [08000370
-> 0800038b]
collect2: ld returned 1 exit status
I use this call (no makefile, just testing things out):
arm-agb-elf-gcc -T lnkscript -o test.elf main.c
The lnkscript is from Jeff F., and I used this to build crt0.o, which
I replaced the default file with:
arm-thumb-elf-as -o crt0.o CRT0.S
Can anyone help explain what's wrong?
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