]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
heh, apparently not even SuSE 8.2 has a recent-enough gas :)
authorDirk Mueller <daywalker@users.sourceforge.net>
Fri, 17 Oct 2003 13:24:40 +0000 (13:24 +0000)
committerDirk Mueller <daywalker@users.sourceforge.net>
Fri, 17 Oct 2003 13:24:40 +0000 (13:24 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1945

coregrind/vg_startup.S

index 6b352cd483589b6b122da3642fde83c20259cff4..5e5d8a7686598ac5770f44a9ef20493ddde34345 100644 (file)
@@ -30,6 +30,7 @@
 */
 
 #include "vg_constants.h"
+#include "../config.h"
 
 
 #---------------------------------------------------------------------
@@ -231,7 +232,9 @@ vg_esp_saved_over_GDB_start:
 .type VG_(swizzle_esp_then_start_GDB),@function
 .global VG_(swizzle_esp_then_start_GDB)        
 VG_(swizzle_esp_then_start_GDB):
+#ifdef HAVE_GAS_CFI
        .cfi_startproc
+#endif
        pushal
 
        # remember the simulators current stack/frame pointers
@@ -258,21 +261,29 @@ VG_(swizzle_esp_then_start_GDB):
 
        # push %EBP.  This is a faked %ebp-chain pointer.
        pushl   %eax
+#ifdef HAVE_GAS_CFI
        .cfi_adjust_cfa_offset 0x4
+#endif
 
        movl    %esp, %ebp
+#ifdef HAVE_GAS_CFI
        .cfi_def_cfa_register ebp
+#endif
        
        call    VG_(start_GDB_whilst_on_client_stack)
 
        # restore the simulators stack/frame pointer
        movl    vg_ebp_saved_over_GDB_start, %ebp
        movl    vg_esp_saved_over_GDB_start, %esp
+#ifdef HAVE_GAS_CFI
        .cfi_adjust_cfa_offset -0x4
+#endif
        
        popal
        ret
+#ifdef HAVE_GAS_CFI
        .cfi_endproc
+#endif
 
 # gcc puts this construction at the end of every function.  I think it
 # allows the linker to figure out the size of the function.  So we do