[Coco] More progress
Steven Hirsch
snhirsch at gmail.com
Sun Dec 28 21:18:30 EST 2008
On Sun, 28 Dec 2008, Boisy Pitre wrote:
> Steve,
>
> Change your line to:
>
> rlink -l=/dd/lib/clib.l -o=hello.r cstart.r hello.r
>
> The symbols you mentioned are located in cstart.r (the C runtime). If you
> don't have it I probably can send it to you.
Boisy, et al,
I was able to hack one together by taking cstart.a from the CoCo compiler
and and os9defs.a I found in the NitrOS9 distribution. I actually had to
ensure that the C library came last:
$ rlink hello.r cstart.r -l=/dd/lib/clib.l -o=hello
Now, on to the code generation issues. I cannot see anything in the
compiler sources that would properly set the psect pseudo-op to the
correct language/type value. The compiler has a line that hard-codes zero
for this value and the following one in the header.
Unless I edit by hand, the linker complains:
linker fatal: 'hello.r' contains no mainline
>From reading the code, this is based on the fact that it's finding zero as
the language/type value.
In a "real" situation, do you know what modifies the psect line for the
primary program?
Steve
(almost there now)
--
More information about the Coco
mailing list