Closed githubaf closed 5 years ago
___datadata_relocs
was already done.The result: ___datadata_relocs
is pointing to the wrong location.
The provided example still crashes here...
The lastest toolchain won't compile on my machine anymore:
/matze/amigatoolchain/amiga-gcc/projects/binutils/bfd/amigaoslink.c -o amigaoslink.o
/home/matze/amigatoolchain/amiga-gcc/projects/binutils/bfd/amigaoslink.c: In function ‘insert_long_jumps’:
/home/matze/amigatoolchain/amiga-gcc/projects/binutils/bfd/amigaoslink.c:302:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (unsigned ri = 0; ri < r_datadata_count; ++ri)
^
/home/matze/amigatoolchain/amiga-gcc/projects/binutils/bfd/amigaoslink.c:302:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/home/matze/amigatoolchain/amiga-gcc/projects/binutils/bfd/amigaoslink.c:312:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (unsigned oi = 0; oi < abfd->symcount; ++oi)
^
Makefile:1607: recipe for target 'amigaoslink.lo' failed
builds again
Yep!
Tested sucessfully with latest commit (23Dec18)
When I compile the attached simple example with
~/opt/m68k-amigaos_19Dec18/bin/m68k-amigaos-gcc test.c -noixemul -msmall-code -resident -o test
the resulting executable crashes without printing anything. When I leave out either -msmall-code or -resident the program works.
test.tar.gz