View Single Post
Old 29 September 2021, 21:41   #1293
Wrangler
Registered User
 
Join Date: Sep 2015
Location: London, UK
Posts: 414
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)
Wrangler is offline  
 
Page generated in 0.04213 seconds with 11 queries