This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug dynamic-link/18134] x86-64 ld.so doesn't preserve bound registers


https://sourceware.org/bugzilla/show_bug.cgi?id=18134

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
_dl_runtime_profile has many normal branches after

#ifndef __ILP32__
# ifdef HAVE_MPX_SUPPORT
        bndmov              (LR_BND_OFFSET)(%rsp), %bnd0  # Restore bound
        bndmov (LR_BND_OFFSET +   BND_SIZE)(%rsp), %bnd1  # registers.
        bndmov (LR_BND_OFFSET + BND_SIZE*2)(%rsp), %bnd2
        bndmov (LR_BND_OFFSET + BND_SIZE*3)(%rsp), %bnd3
# else
        .byte 0x66,0x0f,0x1a,0x84,0x24;.long (LR_BND_OFFSET)
        .byte 0x66,0x0f,0x1a,0x8c,0x24;.long (LR_BND_OFFSET + BND_SIZE)
        .byte 0x66,0x0f,0x1a,0x94,0x24;.long (LR_BND_OFFSET + BND_SIZE*2)
        .byte 0x66,0x0f,0x1a,0x9c,0x24;.long (LR_BND_OFFSET + BND_SIZE*3)
# endif
#endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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