]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
BZ#15407: Complete CFI annotations in x86_64 _start code. roland/x86_64-crt1-cfi
authorRoland McGrath <roland@hack.frob.com>
Fri, 26 Apr 2013 21:23:58 +0000 (14:23 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 26 Apr 2013 21:23:58 +0000 (14:23 -0700)
ChangeLog
sysdeps/x86_64/start.S

index 225236c6d878d5f75915a0ae4eaa82720b3b305e..ab3ad2990f80a8753565e7c69cd09c319d50a8ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-26  Roland McGrath  <roland@hack.frob.com>
+
+       [BZ #15407]
+       * sysdeps/x86_64/start.S (_start): Use cfi_adjust_cfa_offset for
+       change to the stack pointer.
+
 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #15406]
index 7cbc157662bd2df3b8e2aa926bcfe063ad565f3b..e50b33cfd98d6ea14a484a3ab1177415b72ff57e 100644 (file)
@@ -88,6 +88,7 @@ _start:
 #else
        popq %rsi               /* Pop the argument count.  */
 #endif
+       cfi_adjust_cfa_offset (LP_SIZE)
        /* argv starts just at the current stack top.  */
        mov %RSP_LP, %RDX_LP
        /* Align the stack to a 16 byte boundary to follow the ABI.  */
@@ -95,10 +96,12 @@ _start:
 
        /* Push garbage because we push 8 more bytes.  */
        pushq %rax
+       cfi_adjust_cfa_offset (-8)
 
        /* Provide the highest stack address to the user code (for stacks
           which grow downwards).  */
        pushq %rsp
+       cfi_adjust_cfa_offset (-8)
 
 #ifdef SHARED
        /* Pass address of our own entry points to .fini and .init.  */