[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] linker problem with -r (relocateable)
Hi all,
Does anyone else see this problem....
Compile a simple test app...
main()
{
}
gcc -c main.c
ld -r -o main2.o main.o
ld -o main3.o main2.o -> crash.
It's because of -r in the second linker command generates a bad file
that causes the linker to crash in the third command.
Now -r means generate relocateable code and I don't think we should be
allowing that with our a.out format ? Maybe just silently ignore the -r
option as quite a few tools use it.
I see this with the older binutils linker too.
Vincent ??
Alan.