[parisc-linux] binfmt_som

Mark Klein mklein@dis.com
Sun, 30 May 1999 17:11:02 -0700


At 01:09 AM 5/31/99 +0200, Matthew Wilcox wrote:

>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