This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH, MPX] MPX-specific changes in dl_runtime routines
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Zamyatin, Igor" <igor dot zamyatin at intel dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Thu, 2 Jul 2015 07:33:16 -0700
- Subject: Re: [PATCH, MPX] MPX-specific changes in dl_runtime routines
- Authentication-results: sourceware.org; auth=none
- References: <0EFAB2BDD0F67E4FB6CCC8B9F87D75696A91AC38 at IRSMSX101 dot ger dot corp dot intel dot com>
On Thu, Jul 2, 2015 at 7:03 AM, Zamyatin, Igor <igor.zamyatin@intel.com> wrote:
> Hi!
>
> This patch adds necessary changes for proper work of dl_runtime routines both for 32 and 64 bits in MPX mode.
>
> Is it ok for trunk?
>
>
> Thanks,
> Igor
>
>
> 2015-07-02 Igor Zamyatin <igor.zamyatin@intel.com>
>
> * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Save
> and restore Intel MPX return bound registers
> * sysdeps/x86_64/dl-trampoline.h: Add PRESERVE_BND_REGS_PREFIX to
> call, jump and ret instructions to not loose bounds.
> * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
> lrv_bnd1.
Should we add link-defines.sym, similar to x86-64, to avoid
those magic numbers when accessing the fields in La_i86_regs
and La_i86_retval?
Please add "[BZ #18134]" to ChangLog and add 18134 to NEWS
when this is checked in.
Thanks.
--
H.J.