diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-05-02 06:21:09 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-05-02 06:21:24 -0700 |
commit | 8b8f32b2800a132b4d95053fad7c9b44309f1d6e (patch) | |
tree | af54b6e0201e547f58dbeb460b9aa2a48b782e38 /ChangeLog | |
parent | d6cc1829aa31b6fb060f24dffd28aa6705cdd33a (diff) | |
download | glibc-8b8f32b2800a132b4d95053fad7c9b44309f1d6e.tar glibc-8b8f32b2800a132b4d95053fad7c9b44309f1d6e.tar.gz glibc-8b8f32b2800a132b4d95053fad7c9b44309f1d6e.tar.bz2 glibc-8b8f32b2800a132b4d95053fad7c9b44309f1d6e.zip |
x86-64/setcontext: Pop the pointer into %rdx after syscall
To prepare for shadow stack support, pop the pointer into %rdx after
syscall and use %rdx, instead of %rsi, to restore context. There is
no functional change.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
Pop the pointer into %rdx after syscall and use %rdx, instead
of %rsi, to restore context.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2018-05-02 H.J. Lu <hongjiu.lu@intel.com> + * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext): + Pop the pointer into %rdx after syscall and use %rdx, instead + of %rsi, to restore context. + +2018-05-02 H.J. Lu <hongjiu.lu@intel.com> + * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous handlers after setjmp. * setjmp/longjmp.c (__libc_longjmp): Don't define alias if |