broken 970929 snapshot
Robert Lipe
robertl@dgii.com
Thu Oct 2 23:01:00 GMT 1997
Disclaimer: I don't think I've ever seen an Ultrix system in my life.
I have been known to tinker with MIPS parts, but I think I recognize
the symptoms in your case.
> as0: Error: ./enquire.c, line 1: undefined symbol in expression
> .word $LECIE1-$LSCIE1
I think you're getting nailed by the same thing that got the OpenServer
COFF port. You're getting DWARF2 exceptions (you'd have to look at the
generated assembly to be sure) and they're emitting constructs like
this, but the assembler is unable to handle the subtraction of the
forward references. You can roam through the archives for conversations
on this topic.
To prove or disprove this theory, try the following, in decreasing ease:
Manually compile with file with either -fno-exceptions which
turns exceptions off completely.
Compile the file with -fsjlj-exceptions to force the use of
the setjmp/longjmp exceptions.
Install GNU as.
If either of these work, this is very likely your problem. From here,
your options would include:
Using the GNU assembler for your target.
Experimenting with disabling the DWARF2 exceptions by adding a
#define DWARF2_UNWIND_INFO 0
in your tm.h file
(remember to make clean and rebuild) This is the
approximate equivalent of the -fsjlj-exceptions flag.
Getting the dwarf2 code to not emit forward refs.
--
Robert Lipe http://www.dgii.com/people/robertl robertl@dgii.com
More information about the Gcc
mailing list