9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Lucio De Re <lucio@proxima.alt.za>
To: lucio@proxima.alt.za, 9fans@9fans.net
Subject: Re: [9fans] Plan 9 port of the Go toolchain
Date: Mon, 11 Apr 2011 16:21:21 +0200	[thread overview]
Message-ID: <3e48dd242575c851e2d9bfe54c417e2d@proxima.alt.za> (raw)
In-Reply-To: <3a521a083f982c99e490cdc3b814f0e5@proxima.alt.za>

>> PS: I still can't link an executable with the version of 8l from the
>> Go toolchain that I built under Plan 9, but I'm hoping to get there
>> soon.
> 
> It's of some consolation to me that I see exactly the same results
> under Ubuntu, so that particular problem isn't in the 8l executable
> created for Plan 9.  I may have something exciting to report on this
> issue within the day.
> 
Having rebuilt a copy of runtime.a as well as of "hell-o.8", I now
have an executable created from "hell-o.go" that runs sucessfully
under Plan 9 after having been linked with an "8l" from the Go
toolchain built entirely under Plan 9.  If I were any good with
picture I'd try to make the above easier to visualise.

It seems to me that, contrary to Pavel's careful statement, '8g"
itself is not agnostic regarding the "GOOS=plan9" environment
variable: I'll stick out my neck and claim without sufficient
investigation that (a) the object code is flagged with the
architecture name and (b) that the module functions init() and main()
are labelled with a period (main.main) versus with the Go-special
mid-line dot (middle-dot or UTF-00b7 as in "main·main") in Linux and
Plan 9 respectively.

I would like to upload the modified Go toolchain source code I used to
produce "8l" under Plan 9 to "sources", but I'll wait to find that
there is some interest as well as suggestions on the best approach to
submit these sources to review and testing by others.  I have
everything at hand to reproduce these sources, but some help will be
needed to tie up any lose ends from outside the Go toolchain sources.

And, once again, many thanks to Pavel (and the Go Authors, of course)
for making this possible and assisting with it.  My next task will be
to make similar changes to "8a", "8c" and "8g" to complete the series
of 386 tools.  But I also want to submit the changes in "src/cmd/8l"
and "src/cmd/ld" to the Go Authors for inclusion in future releases,
but that isn't going to be a trouble-free request, the changes have
been rather pervasive.

++L




  reply	other threads:[~2011-04-11 14:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 10:15 Lucio De Re
2011-04-11 10:56 ` Lucio De Re
2011-04-11 14:21   ` Lucio De Re [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-04-08 17:41 Lucio De Re
2011-04-09 15:21 ` Russ Cox

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=3e48dd242575c851e2d9bfe54c417e2d@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --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).