This is the mail archive of the libffi-discuss@sources.redhat.com mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

3.0.1 PATCH: Avoid ELF-only directive in libffi for Alpha


Trying to bootstrap GCC 3.0 on alpha-dec-osf5.1 with --enable-libgcj
initially failed with

as0: Error: /vol/gnu/src/gcc/gcc-3.0/libffi/src/alpha/osf.S, line 254: undefined assembler operation: .section
     .section .rodata

The patch below fixes this.

Ok for branch and mainline?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


Mon Jun 25 19:36:41 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* src/alpha/osf.S (ffi_closure_osf): Use .rdata for ECOFF.

===================================================================
RCS file: libffi/src/alpha/RCS/osf.S,v
retrieving revision 1.1
diff -up -r1.1 libffi/src/alpha/osf.S
--- libffi/src/alpha/osf.S	2001/06/12 19:08:39	1.1
+++ libffi/src/alpha/osf.S	2001/06/22 16:21:40
@@ -251,7 +251,11 @@ $LFE2:
 
 	.end	ffi_closure_osf
 
+#ifdef __ELF__
 .section .rodata
+#else
+.rdata
+#endif
 $load_table:
 	.gprel32 $load_none	# FFI_TYPE_VOID
 	.gprel32 $load_32	# FFI_TYPE_INT


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]