[comp.sys.next] ml and Mach-O format.

pclark@SRC.Honeywell.COM (Peter Clark) (03/21/91)

I just scarfed the ml distribution from princeton.edu, got it compiled, and it
promptly died. The module src/runtime/export.c has this line:

tcmd.vmsize = (int) CEIL(((int)&etext),getpagesize())-textstart;

which doesn't work on a NeXT: the ld symbol etext (and edata) aren't defined
anymore. Substituting the routine get_etext() let it compile, but it didn't
run (segmentation fault).

As anyone out there either patched ml to work under NeXTStep 2.0, or had
experience porting things that muck with the memory layout to run under Mach?

	Pete Clark
	Honeywell SRC