[PATCH, MPX] MPX-specific changes in dl_runtime routines

H.J. Lu hjl.tools@gmail.com
Wed Jul 8 15:34:00 GMT 2015


On Wed, Jul 8, 2015 at 8:25 AM, Zamyatin, Igor <igor.zamyatin@intel.com> wrote:
> Hi!
>
> Please see updated patch (attached)
>
> ChangeLog:
>
> 2015-07-08  Igor Zamyatin  <igor.zamyatin@intel.com>
>
>         [BZ #18134]
>         * 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.
>         * sysdeps/i386/link-defines.sym: Add definitions for LRV_BND0_OFFSET
>         and LRV_BND1_OFFSET.
>

+#else
+ .byte 0x66,0x0f,0x1b,0x04,0x24
+ .byte 0x66,0x0f,0x1b,0x4c,0x24,0x08
+#endif
...
+#else
+ .byte 0x66,0x0f,0x1a,0x04,0x24
+ .byte 0x66,0x0f,0x1a,0x4c,0x24,0x08
+#endif

Please use LRV_BND0_OFFSET and LRV_BND1_OFFSET.


-- 
H.J.



More information about the Libc-alpha mailing list