This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Support SHF_GNU_MBIND and PT_GNU_MBIND_XXX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]