From: John Marvin <jsm@udlkern.fc.hp.com>
To: parisc-linux@puffin.external.hp.com
Subject: Re: [parisc-linux] Use of the EI_OSABI field
Date: Wed, 22 Nov 2000 01:52:04 -0700 (MST) [thread overview]
Message-ID: <200011220852.BAA15590@udlkern.fc.hp.com> (raw)
>
> BTW, it's not too hard to check .note.ABI-tag. The linker arranges for a
> PT_NOTE program header entry to point to it, and the section itself is
> virtually guaranteed to be read in with the header as it's placed right
> after the header along with .interp.
I didn't say it was difficult, I said it was ugly. It means another
parisc only change to the machine independent file fs/binfmt_elf.c,
since the hook provided will not allow this check. Without a change,
binfmt_elf.c won't be smart enough to differentiate a binary produced
by Gnu binutils for HP-UX and a binary produced by Gnu binutils for
Linux, so it will claim both, and then blow up later, rather than
not claiming the HP-UX binary and allowing it to be claimed by
an arch dependent binary handler further down the list.
And binfmt_elf.c does NOT read the program headers in the same read, so
another read would have to be done (the data should be found in in cache
rather than going to disk for it). Since we now need both the program
headers and a section header to determine whether or not we should claim
the file AND binfmt_elf.c also wants to look at those headers after
the file is claimed, a small redesign is probably in order (rather than
re-reading the headers). I'm not sure whether or not Linus would buy
that.
So, I guess I'll pursue the interpreter field instead, since that is
what sparc is doing (i.e. they have their own sparc only code in
binfmt_elf.c). Since that will be an easier sell. I need to do more
research here. I suspect that statically linked binaries are not going
to allow this solution to work though.
John Marvin
jsm@fc.hp.com
next reply other threads:[~2000-11-22 8:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-22 8:52 John Marvin [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-11-22 18:06 [parisc-linux] Use of the EI_OSABI field Cary Coutant
2000-11-21 5:47 John Marvin
2000-11-21 22:50 ` Alan Modra
2000-11-21 23:27 ` Ulrich Drepper
2000-11-22 0:13 ` Alan Modra
2000-11-22 0:31 ` Ulrich Drepper
2000-11-22 0:53 ` H . J . Lu
2000-11-22 3:03 ` Alan Modra
2000-11-22 3:11 ` H . J . Lu
2000-11-25 20:28 ` David O'Brien
2000-11-25 20:33 ` H . J . Lu
2000-11-22 3:18 ` Ulrich Drepper
2000-11-25 20:31 ` David O'Brien
2000-11-25 20:22 ` David O'Brien
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=200011220852.BAA15590@udlkern.fc.hp.com \
--to=jsm@udlkern.fc.hp.com \
--cc=parisc-linux@puffin.external.hp.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