summaryrefslogtreecommitdiff
path: root/libffi/src/sparc
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-16 22:09:22 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-16 22:09:22 +0000
commit1da888ec71546d0aa101f154847eac8baadfa6f9 (patch)
tree0263f96916c31cb329b80472caf4f2a3a0ffa797 /libffi/src/sparc
parent9e46e77e7dafd4a35f9f6139693f80e26515258c (diff)
downloadgcc-1da888ec71546d0aa101f154847eac8baadfa6f9.tar.gz
* configure.in (HAVE_RO_EH_FRAME): Check whether .eh_frame section
should be read-only. * configure: Rebuilt. * fficonfig.h.in: Rebuilt. * include/ffi.h.in (EH_FRAME_FLAGS): Define. * src/alpha/osf.S: Use EH_FRAME_FLAGS. * src/powerpc/linux64.S: Likewise. * src/powerpc/linux64_closure.S: Likewise. Include ffi.h. * src/powerpc/sysv.S: Use EH_FRAME_FLAGS. Use pcrel encoding if -fpic/-fPIC/-mrelocatable. * src/powerpc/powerpc_closure.S: Likewise. * src/sparc/v8.S: If HAVE_RO_EH_FRAME is defined, don't include #write in .eh_frame flags. * src/sparc/v9.S: Likewise. * src/x86/unix64.S: Use EH_FRAME_FLAGS. * src/x86/sysv.S: Likewise. Use pcrel encoding if -fpic/-fPIC. * src/s390/sysv.S: Use EH_FRAME_FLAGS. Include ffi.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66887 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/src/sparc')
-rw-r--r--libffi/src/sparc/v8.S4
-rw-r--r--libffi/src/sparc/v9.S4
2 files changed, 8 insertions, 0 deletions
diff --git a/libffi/src/sparc/v8.S b/libffi/src/sparc/v8.S
index 53374de3855..e9db51b0456 100644
--- a/libffi/src/sparc/v8.S
+++ b/libffi/src/sparc/v8.S
@@ -172,7 +172,11 @@ done1:
#define uanword uaword
#endif
+#ifdef HAVE_RO_EH_FRAME
+ .section ".eh_frame",#alloc
+#else
.section ".eh_frame",#alloc,#write
+#endif
.LLframe1:
.uaword .LLECIE1-.LLSCIE1 ! Length of Common Information Entry
.LLSCIE1:
diff --git a/libffi/src/sparc/v9.S b/libffi/src/sparc/v9.S
index 8dc9c90f661..e2eeb439eed 100644
--- a/libffi/src/sparc/v9.S
+++ b/libffi/src/sparc/v9.S
@@ -207,7 +207,11 @@ longdouble1:
.ffi_closure_v9_end:
.size ffi_closure_v9,.ffi_closure_v9_end-ffi_closure_v9
+#ifdef HAVE_RO_EH_FRAME
+ .section ".eh_frame",#alloc
+#else
.section ".eh_frame",#alloc,#write
+#endif
.LLframe1:
.uaword .LLECIE1-.LLSCIE1 ! Length of Common Information Entry
.LLSCIE1: