binfmt_som
I was a little over-optimistic about releasing a first cut today, I guess :-)
I've moved `som.h' from include/asm-parisc/ to include/linux/, like elf.h & a.out.h. I've also populated it with the structures which I've needed so far, copied from the document below. binfmt_som.c is still showing extreme signs of its ELF heritage and definitely won't compile yet.
I have a question; what is `union name_pt' defined as? It's referenced several times in ``32-bit PA-RISC Run-Time Architecture Document 11.0 version 1.0'', page 3-56 for one example. However, grepping the document reveals no trace of a definition of this (or `union name_p' for that matter).
Signature · 4 lines
Matthew Wilcox <[email protected]> "Windows and MacOS are products, contrived by engineers in the service of specific companies. Unix, by contrast, is not so much a product as it is a painstakingly compiled oral history of the hacker subculture." - N Stephenson
Quoted 1 line · Matthew Wilcox
I have a question; what is `union
name_pt' defined as?
union name_pt {
char *n_name;
unsigned int n_strx;
};Since the offsets into the string tables are "table relative", this is typically used to adjust the pointer in order to have it actually point to the name referenced:
space.name.n_name = space.name.n_strx + som_header.space_strings_location;
Now space.name.n_name refers to the actual name instead of the index.
--
Mark Klein DIS International, Ltd.
http://www.dis.com 415-892-8400
PGP Public Key Available