9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ron minnich <rminnich@lanl.gov>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] gcc trouble
Date: Fri,  7 Nov 2003 22:05:10 -0700	[thread overview]
Message-ID: <Pine.LNX.4.44.0311072200420.2521-100000@maxroach.lanl.gov> (raw)
In-Reply-To: <795af12533ba8f56e5f836e909695045@collyer.net>

On Fri, 7 Nov 2003, Geoff Collyer wrote:

> I have a hazy memory of g++ relying on features or behaviour of gnuld.
> Otherwise, one could make gcc generate Plan 9 assembly language and
> assemble it with 8a and friends.

I think the right place to catch it is at the back of gnuld. Build a bfd
module that does plan 9 object format, and use the -o switch to ld to get
that format.

Here are the formats supported by linux on my laptop:
BFD header file version 2.11.93.0.2 20020207
elf32-i386
 (header little endian, data little endian)
  i386
a.out-i386-linux
 (header little endian, data little endian)
  i386
efi-app-ia32
 (header little endian, data little endian)
  i386
elf32-little
 (header little endian, data little endian)
  i386
elf32-big
 (header big endian, data big endian)
  i386
srec
 (header endianness unknown, data endianness unknown)
  i386
symbolsrec
 (header endianness unknown, data endianness unknown)
  i386
tekhex
 (header endianness unknown, data endianness unknown)
  i386
binary
 (header endianness unknown, data endianness unknown)
  i386
ihex
 (header endianness unknown, data endianness unknown)
  i386
trad-core
 (header endianness unknown, data endianness unknown)

               elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little
elf32-big
          i386 elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little
elf32-big

               srec symbolsrec tekhex binary ihex trad-core
          i386 srec symbolsrec tekhex binary ihex ---------

Note that symbolsrec format. srec long ago was actually a paper tape
format at one point, moved to serial ports, and still around almost 30
years later. If you can do srec, you can do plan 9 a.out.

The next mess you face is dealing with calling conventions, ewwww.

ron




  reply	other threads:[~2003-11-08  5:05 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07 16:27 cej
2003-11-07 17:58 ` mirtchov
2003-11-07 16:53   ` Russ Cox
2003-11-07 19:14     ` mirtchov
2003-11-07 19:36       ` Russ Cox
2003-11-07 19:48       ` mirtchov
2003-11-07 19:56         ` Christopher Nielsen
2003-11-07 20:47           ` ron minnich
2003-11-07 21:05             ` Christopher Nielsen
2003-11-07 21:11       ` Charles Forsyth
2003-11-07 22:34         ` mirtchov
2003-11-08  0:08     ` Latchesar Ionkov
2003-11-08  1:35       ` Russ Cox
2003-11-08  1:54         ` Latchesar Ionkov
2003-11-08  2:14           ` Russ Cox
2003-11-08  4:35           ` ron minnich
2003-11-08  4:57             ` Geoff Collyer
2003-11-08  5:05               ` ron minnich [this message]
2003-11-08  8:24                 ` Charles Forsyth
2003-11-08 17:29                   ` ron minnich
2003-11-10 10:01                   ` Douglas A. Gwyn
2003-11-11  0:16               ` Latchesar Ionkov
2003-11-12 23:46                 ` Charles Forsyth
2003-11-20 14:33                   ` Latchesar Ionkov
2003-11-20 18:34                     ` boyd, rounin
2003-11-20 21:14                       ` Latchesar Ionkov
2003-11-20 21:27                         ` boyd, rounin
2003-11-20 21:35                           ` mirtchov
2003-11-20 22:45                           ` Latchesar Ionkov
2003-11-21 10:02                         ` Fco.J.Ballesteros
2003-11-20 19:27                     ` Joel Salomon
2003-11-20 20:03                       ` Peter Bosch
2003-11-20 20:49                       ` Christopher Nielsen
2003-11-20 21:01                         ` boyd, rounin
2003-11-20 23:11                           ` Joel Salomon
2003-11-20 23:28                             ` boyd, rounin
2003-11-21  0:19                             ` Christopher Nielsen
2003-11-21  0:31                               ` boyd, rounin
2003-11-10 15:53           ` Joel Salomon
2003-11-11  7:01 cej
2003-11-11  7:05 cej
2003-11-21  7:08 cej
2003-11-21  8:46 ` Charles Forsyth
2003-11-21  9:53   ` Skip Tavakkolian

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=Pine.LNX.4.44.0311072200420.2521-100000@maxroach.lanl.gov \
    --to=rminnich@lanl.gov \
    --cc=9fans@cse.psu.edu \
    /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).