Only emit DWARF unwind info when building with GCC
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2013-01-08 Anthony Green <green@moxielogic.com>
|
2013-01-08 Anthony Green <green@moxielogic.com>
|
||||||
|
|
||||||
|
* src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
|
||||||
|
when building with the GNU toolchain.
|
||||||
* testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
|
* testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
|
||||||
compiler.
|
compiler.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
sysv.S - Copyright (c) 1996, 1998, 2001-2003, 2005, 2008, 2010 Red Hat, Inc.
|
sysv.S - Copyright (c) 2013 The Written Word
|
||||||
|
- Copyright (c) 1996,1998,2001-2003,2005,2008,2010 Red Hat, Inc.
|
||||||
|
|
||||||
X86 Foreign Function Interface
|
X86 Foreign Function Interface
|
||||||
|
|
||||||
@@ -328,6 +329,9 @@ ffi_closure_raw_SYSV:
|
|||||||
.size ffi_closure_raw_SYSV, .-ffi_closure_raw_SYSV
|
.size ffi_closure_raw_SYSV, .-ffi_closure_raw_SYSV
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined __GNUC__
|
||||||
|
/* Only emit dwarf unwind info when building with GNU toolchain. */
|
||||||
|
|
||||||
#if defined __PIC__
|
#if defined __PIC__
|
||||||
# if defined __sun__ && defined __svr4__
|
# if defined __sun__ && defined __svr4__
|
||||||
/* 32-bit Solaris 2/x86 uses datarel encoding for PIC. GNU ld before 2.22
|
/* 32-bit Solaris 2/x86 uses datarel encoding for PIC. GNU ld before 2.22
|
||||||
@@ -459,6 +463,7 @@ ffi_closure_raw_SYSV:
|
|||||||
.align 4
|
.align 4
|
||||||
.LEFDE3:
|
.LEFDE3:
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* ifndef __x86_64__ */
|
#endif /* ifndef __x86_64__ */
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
unix64.S - Copyright (c) 2002 Bo Thorsen <bo@suse.de>
|
unix64.S - Copyright (c) 2013 The Written Word
|
||||||
Copyright (c) 2008 Red Hat, Inc
|
- Copyright (c) 2008 Red Hat, Inc
|
||||||
|
- Copyright (c) 2002 Bo Thorsen <bo@suse.de>
|
||||||
|
|
||||||
x86-64 Foreign Function Interface
|
x86-64 Foreign Function Interface
|
||||||
|
|
||||||
@@ -324,6 +325,9 @@ ffi_closure_unix64:
|
|||||||
.LUW9:
|
.LUW9:
|
||||||
.size ffi_closure_unix64,.-ffi_closure_unix64
|
.size ffi_closure_unix64,.-ffi_closure_unix64
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
/* Only emit DWARF unwind info when building with the GNU toolchain. */
|
||||||
|
|
||||||
#ifdef HAVE_AS_X86_64_UNWIND_SECTION_TYPE
|
#ifdef HAVE_AS_X86_64_UNWIND_SECTION_TYPE
|
||||||
.section .eh_frame,"a",@unwind
|
.section .eh_frame,"a",@unwind
|
||||||
#else
|
#else
|
||||||
@@ -419,6 +423,8 @@ ffi_closure_unix64:
|
|||||||
.align 8
|
.align 8
|
||||||
.LEFDE3:
|
.LEFDE3:
|
||||||
|
|
||||||
|
#endif /* __GNUC__ */
|
||||||
|
|
||||||
#endif /* __x86_64__ */
|
#endif /* __x86_64__ */
|
||||||
|
|
||||||
#if defined __ELF__ && defined __linux__
|
#if defined __ELF__ && defined __linux__
|
||||||
|
|||||||
Reference in New Issue
Block a user