Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] binfmt_som
@ 1999-06-13  1:52 Matthew Wilcox
  1999-06-13  6:40 ` Jeffrey A Law
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Wilcox @ 1999-06-13  1:52 UTC (permalink / raw)
  To: parisc-linux


I plunged further into the binfmt_* files today and have a fair idea what needs to be done next.  One passage is slightly troubling me (page 6-126 of the
runtime arch document),

``exec_dsize
This field specifies the size in bytes of the initialised data (does
not have to be a multiple of 4k).  The actual size of the data section
in the file must be a multiple of 4k and can be padded with zeroes to
make it a multiple of 4k.''

Does this mean in the case where exec_dsize is not a multiple of 4k, it
MUST be padded with zeroes, or merely might be padded with zeroes?  If the
former, I don't need to zero them myself in the loader which would be nice.

Also, where does the bss section start?  Is it immediately after the
initialised data or at the next page boundary after it?

binfmt_som is going to be the cleanest binfmt in the kernel when I'm
finished with it :-)  [and then I'm going to clean up the others.]

-- 
Matthew Wilcox <willy@bofh.ai>
"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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [parisc-linux] binfmt_som
@ 1999-06-03 17:57 Matthew Wilcox
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 1999-06-03 17:57 UTC (permalink / raw)
  To: parisc-linux


I've checked in a binfmt_som which I think might work.  However,
it definitely won't work until someone defines put_user() & friends
in include/asm-parisc/uaccess.h.

I also inserted a declaration of start_thread in <asm/processor.h> --
some platforms have it as a macro, some have it as a function, so I
think linking will now fail with that as an undefined symbol.

-- 
Matthew Wilcox <willy@bofh.ai>
"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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [parisc-linux] binfmt_som
@ 1999-05-30 23:09 Matthew Wilcox
  1999-05-31  0:11 ` Mark Klein
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Wilcox @ 1999-05-30 23:09 UTC (permalink / raw)
  To: parisc-linux


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).

-- 
Matthew Wilcox <willy@bofh.ai>
"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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-06-13  6:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-13  1:52 [parisc-linux] binfmt_som Matthew Wilcox
1999-06-13  6:40 ` Jeffrey A Law
  -- strict thread matches above, loose matches on Subject: below --
1999-06-03 17:57 Matthew Wilcox
1999-05-30 23:09 Matthew Wilcox
1999-05-31  0:11 ` Mark Klein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox