[MLton-devel] gcc/ld bug

Henry Cejtin henry@sourcelight.com
Sat, 13 Apr 2002 13:45:35 -0500


Well, the consistency is good since that means it is almost certainly a gcc
bug rather than hardware.  I would try gcc 2.96 next, but it could just be
that the cross-compiling aspect is the problem.  I wouldn't have thought it,
but I don't have a feel for just how much people use gcc in that mode.
In the segfault you sent, gcc was just running the linker, which is the thing
that is the most different in the cross-compile mode.
One thing you might try to work around it, although this might not work in
cross-compiling, is to use the -r flag, which lets you link a bunch of .r's
together into a larger .o, and then link subsets of the program together.
Alternatively, you could make all the .o's except for the one with main in it
into a .a (using ar) and then link against that.  The notion is that there is
some table overflow going on because of all the things being linked together.

_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel