[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GAS fails on GCC output
From: |
Jan Beulich |
Subject: |
GAS fails on GCC output |
Date: |
Tue, 06 Nov 2001 12:59:10 +0100 |
Hello,
while investigating the debug info options provided by gcc I came to find that
gas does not accept output generated by gcc in a specific case when using
-gcoff on the gcc command line. C source and assembly output are attached. The
resulting messages are
coffsym.s: Assembler messages:
coffsym.s:38: Fatal error: C_EFCN symbol out of scope
and the problem is appearantly related to the fact that
.def _localfunc; .scl 2; .type 32; .endef
is following the actual declaration of _localfunc, which (in the C source) is
being declared, referenced, and defined in this order. If the reference occures
after the definition, the problem does not occur.
Possbly not fully knowing all apsects of COFF symbols I cannot reliably
determine whether the compiler emits incorrect assembly directives, or whether
the assembler is at fault, but even if what the compiler emits is not correct
(in which case a bug report would need to be filed against it), the error
message generated is more than cryptic and would instead be requested to report
the original problem rather than a leter consequence of it.
The assembler has been built from binutils 2.11.2 on CygWin 1.3.3-2 running on
Win2000.
Thank you so much,
coffsym.s
Description: Binary data
coffsym.c
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GAS fails on GCC output,
Jan Beulich <=