9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: James Tomaschke <james@orcasystems.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] More on the GO toolchain
Date: Fri,  8 Jan 2010 16:10:03 -0800	[thread overview]
Message-ID: <4B47C95B.6020701@orcasystems.com> (raw)
In-Reply-To: <401ab756359b37f4bef38808181fa9bf@coraid.com>

erik quanstrom wrote:
> ; mk -n mbr.install
> 8l -o mbr -H3 -T0x0600 -l mbr.8
> ls -l mbr
> cp mbr /386/mbr

The go toolchain yields:
$ 8l -o mbr -H3 -T0x0600 -l mbr.8
confidence: runtime·morestack not defined
??none??: _rt0_386_plan9: not defined

src/cmd/8l/pass.c:
symmorestack = lookup("runtime·morestack", 0);
....
if(pmorestack == P)
  diag("runtime·morestack not defined");

src/cmd/ld/lib.c: void libinit(void)
sprint(INITENTRY, "_rt0_%s_%s", goarch, goos);

If you can address these two, I think you can use 8l without the runtime.




  reply	other threads:[~2010-01-09  0:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-08  4:17 lucio
2010-01-08 21:09 ` James Tomaschke
2010-01-08 21:49   ` erik quanstrom
2010-01-09  0:10     ` James Tomaschke [this message]
2010-01-09  3:55       ` lucio
2010-01-09  3:59         ` erik quanstrom
2010-01-09  3:42   ` lucio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B47C95B.6020701@orcasystems.com \
    --to=james@orcasystems.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).