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 libc/18661] Some x86-64 assembly codes don't align stack to 16 bytes


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

--- Comment #19 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  72354ab5e1d61dec7606a8851f0eb1bb016f7af7 (commit)
       via  b4425b95ad64e5945ea9674f888561d725747128 (commit)
       via  8e1f346462d8c1b238a7c6bb501c45b381a45e4d (commit)
      from  3b8d2eb7f8435c73692f55f95e9a0ef27015b6c3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=72354ab5e1d61dec7606a8851f0eb1bb016f7af7

commit 72354ab5e1d61dec7606a8851f0eb1bb016f7af7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Jul 12 14:41:20 2015 -0700

    Align stack to 16 bytes when calling __errno_location

    We should align stack to 16 bytes when calling __errno_location.

        [BZ #18661]
        * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
        when calling __errno_location.
        * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
        * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b4425b95ad64e5945ea9674f888561d725747128

commit b4425b95ad64e5945ea9674f888561d725747128
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Jul 12 14:40:25 2015 -0700

    Align stack to 16 bytes when calling __gettimeofday

    Subtract stack by 24 bytes instead of 16 bytes so that stack is aligned
    to 16 bytes when calling __gettimeofday.

        [BZ #18661]
        * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
        (__lll_timedwait_tid): Align stack to 16 bytes when calling
        __gettimeofday.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8e1f346462d8c1b238a7c6bb501c45b381a45e4d

commit 8e1f346462d8c1b238a7c6bb501c45b381a45e4d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Jul 12 14:38:58 2015 -0700

    Align stack to 16 bytes when calling __setcontext

    Don't use pop to restore %rdi so that stack is aligned to 16 bytes
    when calling __setcontext.

        [BZ #18661]
        * sysdeps/unix/sysv/linux/x86_64/__start_context.S
        (__start_context): Don't use pop to restore %rdi so that stack
        is aligned to 16 bytes when calling __setcontext.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                        |   22 ++++++++++++++++++++++
 NEWS                                             |    2 +-
 sysdeps/unix/sysv/linux/x86_64/__start_context.S |    4 ++--
 sysdeps/unix/sysv/linux/x86_64/lowlevellock.S    |    9 +++++----
 sysdeps/x86_64/fpu/s_cosf.S                      |    6 ++++++
 sysdeps/x86_64/fpu/s_sincosf.S                   |    6 ++++++
 sysdeps/x86_64/fpu/s_sinf.S                      |    6 ++++++
 7 files changed, 48 insertions(+), 7 deletions(-)

-- 
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]