From: Alan Modra <amodra@gmail.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: binutils@sourceware.org
Subject: Re: [PATCH] Support SHF_GNU_MBIND and PT_GNU_MBIND_XXX
Date: Fri, 17 Mar 2017 03:38:00 -0000 [thread overview]
Message-ID: <20170317033836.GQ4983@bubble.grove.modra.org> (raw)
In-Reply-To: <20170315224617.GA23626@intel.com>
On Wed, Mar 15, 2017 at 03:46:17PM -0700, H.J. Lu wrote:
> Any comments?
Doesn't pass my sniff test.
You say that management of special memory regions doesn't belong in
the kernel or glibc, but will be handled by a vendor supplied
library. In that case, why must ld.so run your magic
__gnu_mbind_setup function? If ld.so doesn't need to run
__gnu_mbind_setup then there's no need to pass information to ld.so
via special segment types and flags.
Just have the application call __gnu_mbind_setup. The function
can take the address range(s) requested as a parameter rather than
putting them into the executable headers. It shouldn't be difficult
for the linker to arrange such a call on application startup.
--
Alan Modra
Australia Development Lab, IBM
next prev parent reply other threads:[~2017-03-17 3:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-15 22:46 H.J. Lu
2017-03-17 3:38 ` Alan Modra [this message]
2017-03-17 15:58 ` H.J. Lu
2017-03-19 11:39 ` Alan Modra
2017-03-20 16:35 ` H.J. Lu
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=20170317033836.GQ4983@bubble.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
--cc=hjl.tools@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).