This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi project.
libffi on Solaris + gcc 2.95.2
- From: Eli Barzilay <eli at barzilay dot org>
- To: libffi-discuss at sources dot redhat dot com
- Date: Sat, 30 Oct 2004 16:57:46 -0400
- Subject: libffi on Solaris + gcc 2.95.2
We had the following problem on Solaris using gcc 2.95.2:
.../libffi/src/sparc/v8.S: Assembler messages:
.../libffi/src/sparc/v8.S:221: Error: Unknown pseudo-op: `.'
.../libffi/src/sparc/v8.S:222: Error: Unknown pseudo-op: `.'
.../libffi/src/sparc/v8.S:244: Error: Unknown pseudo-op: `.'
.../libffi/src/sparc/v8.S:245: Error: Unknown pseudo-op: `.'
*** Error code 1
The following patch fixed it:
===============================================================================
*** v8.S 2004-05-26 19:07:00.000000000 -0400
--- new-v8.S 2004-10-29 23:31:41.538218937 -0400
*************** done2:
*** 175,187 ****
.size ffi_closure_v8,.ffi_closure_v8_end-ffi_closure_v8
#ifdef SPARC64
! #define WS 8
! #define nword xword
! #define uanword uaxword
#else
! #define WS 4
! #define nword long
! #define uanword uaword
#endif
#ifdef HAVE_RO_EH_FRAME
--- 175,183 ----
.size ffi_closure_v8,.ffi_closure_v8_end-ffi_closure_v8
#ifdef SPARC64
! # define WS 8
#else
! # define WS 4
#endif
#ifdef HAVE_RO_EH_FRAME
*************** done2:
*** 218,225 ****
.uaword .LLFE1-.LLFB1 ! FDE address range
#else
.align WS
! .nword .LLFB1
! .uanword .LLFE1-.LLFB1 ! FDE address range
#endif
.byte 0x0 ! uleb128 0x0; Augmentation size
.byte 0x4 ! DW_CFA_advance_loc4
--- 214,226 ----
.uaword .LLFE1-.LLFB1 ! FDE address range
#else
.align WS
! # ifdef SPARC64
! .xword .LLFB1
! .uaxword .LLFE1-.LLFB1 ! FDE address range
! # else
! .long .LLFB1
! .uaword .LLFE1-.LLFB1 ! FDE address range
! # endif
#endif
.byte 0x0 ! uleb128 0x0; Augmentation size
.byte 0x4 ! DW_CFA_advance_loc4
*************** done2:
*** 241,248 ****
.uaword .LLFE2-.LLFB2 ! FDE address range
#else
.align WS
! .nword .LLFB2
! .uanword .LLFE2-.LLFB2 ! FDE address range
#endif
.byte 0x0 ! uleb128 0x0; Augmentation size
.byte 0x4 ! DW_CFA_advance_loc4
--- 242,254 ----
.uaword .LLFE2-.LLFB2 ! FDE address range
#else
.align WS
! # ifdef SPARC64
! .xword .LLFB2
! .uaxword .LLFE2-.LLFB2 ! FDE address range
! # else
! .long .LLFB2
! .uaword .LLFE2-.LLFB2 ! FDE address range
! # endif
#endif
.byte 0x0 ! uleb128 0x0; Augmentation size
.byte 0x4 ! DW_CFA_advance_loc4
===============================================================================
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!