From: "H. J. Lu" <hjl@lucon.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [Fwd: RE: elf header bits for page migration support......]
Date: Mon, 16 May 2005 04:42:07 +0000 [thread overview]
Message-ID: <20050516044207.GA26403@lucon.org> (raw)
In-Reply-To: <4287A223.6010804@sgi.com>
On Sun, May 15, 2005 at 11:29:55PM -0500, Ray Bryant wrote:
> H. J. Lu wrote:
>
> >
> >I didn't follow the whole thread very closely. But I can say
> >
> >1. We should use a dummy segement instead of bits in ELF header.
> >2. ld.so has no problems with more than one PT_LOAD segment. Most
> >of binaries/DSOs have 2: one is readonly and executable, the other
> >is read and write.
> >
> >If you want to modify ld.so to support your scheme, you can mark it
> >any PT_XXX you want. If you don't need/want to modify ld.so, you can
> >use a new PT_XXX and deal it in the user code. Ld.so will ignore the
> >unknow PT_XXX. The static linker can provide _start/_end symbols for
> >the new PT_XXX segment.
> >
> >
> >H.J.
> >
>
> If we use a new segment at the end of the file (Jack had suggested this),
> then don't we have to scan the entire file before we find out that the
> executable has this special section? That makes it hard, because we call
> mmap() in ld.so and execve() [inside the kernel] as each segment is
> encountered. So we need to know before that mmap() call is made whether
> or not the migration attribute needs to be added to that mmap'd region.
All necessary information of any segment should be in the ELF program
header. Looking it up is very straight forward in kernel and ld.so.
H.J.
prev parent reply other threads:[~2005-05-16 4:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-15 19:25 [Fwd: RE: elf header bits for page migration support......] Jack Carter
2005-05-15 19:45 ` H. J. Lu
2005-05-15 20:08 ` Jack Carter
2005-05-15 20:33 ` H. J. Lu
2005-05-16 4:29 ` Ray Bryant
2005-05-16 4:42 ` H. J. Lu [this message]
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=20050516044207.GA26403@lucon.org \
--to=hjl@lucon.org \
--cc=linux-ia64@vger.kernel.org \
/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