Problem with egcs-971008 on Linux Sparc

Daniel.Veillard@w3.org Daniel.Veillard@w3.org
Sat Oct 11 10:00:00 GMT 1997


  Trying to compile egcs-971008 on a Linux-Sparc (SS5, pure RH-4.2 setup)
failed as soon as the new cross compiler is invoked. It seems that the
.eh_frame section has unaligned data :


~/src/egcs-971008/gcc -> make
./xgcc -B./  -DIN_GCC   -DUSE_GNULIBC_1 -g -I./include     -DNO_MEM 
-DNO_LONG_DOUBLE_IO -O0 -I. -c ./enquire.c
/tmp/cca32084.s: Assembler messages:
/tmp/cca32084.s:22916: Error: misaligned data
/tmp/cca32084.s:22931: Error: misaligned data

/tmp/cca32084.s:23846: Error: misaligned data
make: *** [enquire.o] Error 1
~/src/egcs-971008/gcc -> ./xgcc -B./  -DIN_GCC   -DUSE_GNULIBC_1 -g 
-I./include     -DNO_MEM -DNO_LONG_DOUBLE_IO -O0 -I. -S ./enquire.c


----------- "enquire.s" line 22892 of 23855 --96%-- ----------
.section        ".eh_frame",#alloc,#write
__FRAME_BEGIN__:
        .uaword .LLECIE1-.LLSCIE1
.LLSCIE1:
        .uaword 0xffffffff
        .byte   0x1
        .byte   0x0
        .byte   0x1
        .byte   0x7c
        .byte   0x65
        .byte   0xc
        .byte   0xe
        .byte   0x0
        .byte   0x9
        .byte   0x65
        .byte   0xf
        .align 4
.LLECIE1:
        .uaword .LLEFDE1-.LLSFDE1
.LLSFDE1:
        .uaword __FRAME_BEGIN__
        .uaword .LLFB1
        .uaword .LLFE1-.LLFB1
        .byte   0x4
        .uaword .LLCFI0-.LLFB1
        .byte   0xd
---------------------------------------------------------------

   All the warnings come from uaword misplaced after a byte. I guess
that uaword means "unaligned word", but the assembler choke on this.

~/src/egcs-971008/gcc -> as -v
GNU assembler version 2.7 (sparc-unknown-linux), using BFD version 2.7.0.2

  Do I need to upgrade my binutils before using Egcs, David any idea ?

BTW I keep on using egcs-latest with -O6 as my standard compiler on the
linux-i386, works well, good job guys !

  Daniel





More information about the Gcc mailing list