Hi, I'm having trouble using ld from Bebbo's gcc 6 with the -r option. Whatever I try, I end up with the error:
Code:
m68k-amigaos-ld: final link failed: bad value
even with very simple examples eg the following:
This is m68kobj.c compiled with gcc -c to m68kobj.o (nonsense program, I know)
Code:
int main()
{
int a, b, c;
a = 6;
b = 5;
c = a + b;
a = c / 2;
return 4;
}
Even doing:
Code:
m68k-amigaos-ld -r -o outobj.o m68kobj.o
gives the "bad value" error.
What is the fix for this because this is doing my head in!
(I'm using cygwin fwiw)