From: Jeffrey A Law <law@cygnus.com>
To: Matthew Wilcox <Matthew.Wilcox@genedata.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
John David Anglin <dave@hiauly1.hia.nrc.ca>,
adevries@thepuffingroup.com, parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] booting problems
Date: Sat, 12 Jun 1999 15:15:28 -0600 [thread overview]
Message-ID: <23459.929222128@upchuck.cygnus.com> (raw)
In-Reply-To: Your message of Sat, 12 Jun 1999 21:36:49 +0200. <19990612213649.Y31472@mencheca.ch.genedata.com>
In message <19990612213649.Y31472@mencheca.ch.genedata.com>you write:
> Yes, if you really want to support SOM properly and follow the spec.
> It probably isn't if you want to just deal with what actually exists in
> the world. If you look at page 6-125 of the `32-bit PA-RISC Run-Time
> Architecture Document 11.0 Version 1.0', it says that all conforming
> executable SOM files must have the `exec auxiliary header (also known as
> the HP-UX header with Hewlett-Packard)'.
The headers are the easy part. Really. It's the relocations that are such
a bear.
> So in the binfmt_som loader I take this opportunity to ignore the
> wonderfully flexible and expressive structure that is contained in the SOM
> file format and just map the text, data and bss segments from the file.
> I imagine that a SOM linker which did just enough to get a kernel up
> and running would not be too hard to write. On the other hand, I can
> think of a dozen more interesting and productive things to do.
If you look at the SOM exec aux header, it effectively gives you the old
traditional text, data, bss. That's its purpose in life -- to glom together
all the readonly loadable things into ".text", read-write initialized into
".data" and everything else into .bss. The ELF folks in the crowd will
recognize this as the program vs object viewpoints of an ELF file.
While "just a kernel linker" does simplify things (no need for shared libraries
and the shitloads of stubs they involve), you've still got a large, nontrivial
project on your hands. It would *still* be easier to sit down and rewrite the
elf32 tools than to do a kernel-only SOM linker.
If you're really sadistic, look at the way calls relocs are handled.
jeff
next prev parent reply other threads:[~1999-06-12 21:21 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3761F335.ADA76678@thepuffingroup.com>
1999-06-12 6:32 ` [parisc-linux] booting problems Jeffrey A Law
1999-06-12 11:15 ` Alex deVries
1999-06-12 16:57 ` John David Anglin
1999-06-12 18:36 ` Alan Cox
1999-06-12 18:53 ` Jeffrey A Law
1999-06-12 19:36 ` Matthew Wilcox
1999-06-12 21:15 ` Jeffrey A Law [this message]
1999-06-12 21:09 ` Jeffrey A Law
1999-06-13 19:10 ` John David Anglin
1999-06-14 0:17 ` Alex deVries
2001-08-31 16:06 James Waterhouse
-- strict thread matches above, loose matches on Subject: below --
1999-06-11 18:49 Jason Eckhardt
1999-06-11 19:37 ` Alex deVries
1999-06-12 0:56 ` John David Anglin
1999-06-12 1:25 ` John David Anglin
1999-06-12 3:23 ` John David Anglin
1999-06-12 3:43 ` Jeffrey A Law
1999-06-12 5:10 ` Alex deVries
1999-06-12 5:11 ` Jeffrey A Law
1999-06-10 21:06 Richard J. Rauenzahn
[not found] <no.id>
1999-06-10 18:32 ` Stan Sieler
1999-06-10 5:07 Alex deVries
1999-06-10 6:20 ` Kirk Bresniker
1999-06-10 7:21 ` Alex deVries
1999-06-10 15:26 ` Kirk Bresniker
1999-06-10 17:08 ` Stan Sieler
1999-06-10 17:03 ` Stan Sieler
1999-06-10 21:20 ` John David Anglin
1999-06-11 7:36 ` Alex deVries
1999-06-11 8:57 ` Alex deVries
1999-06-11 9:08 ` Jeffrey A Law
1999-06-11 14:06 ` John David Anglin
1999-06-11 17:19 ` Alex deVries
1999-06-11 18:10 ` Kirk Bresniker
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=23459.929222128@upchuck.cygnus.com \
--to=law@cygnus.com \
--cc=Matthew.Wilcox@genedata.com \
--cc=adevries@thepuffingroup.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@thepuffingroup.com \
/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