]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Make sure the stack pointer is properly aligned when invoking a
authorTom Hughes <tom@compton.nu>
Sun, 16 Dec 2012 09:52:38 +0000 (09:52 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 16 Dec 2012 09:52:38 +0000 (09:52 +0000)
commit4c791a86cb8a50037b3aca0cd7a251f2bd2bb8b0
tree0d4fad16c72bad5d9b9676393ebc26991c3d48a7
parent87d6d6fd1ca5250a2812bad023e2b03e6fc8d73c
Make sure the stack pointer is properly aligned when invoking a
signal on amd64-linux systems.

The amd64 ABI describes the required alignment on function entry
as follows:

  "In other words, the value (%rsp − 8) is always a multiple
   of 16 when control is transferred to the function entry point.

So we need to 16 byte align and then subtract an extra 8 bytes
to achieve the correct alignment.

Patch from fjgmacc@gmail.com to fix BZ#280114.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13182
coregrind/m_sigframe/sigframe-amd64-linux.c