bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug gas/847] New: Error: Zero-length symbol is illegal


From: Ian Lance Taylor
Subject: Re: [Bug gas/847] New: Error: Zero-length symbol is illegal
Date: 15 Apr 2005 10:56:39 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Nick Clifton <address@hidden> writes:

> > The ia64 assembler is choking on `.file ""' with the error message
> > "Zero-length symbol is illegal".  According to the GAS manual this
> > should be allowed.  The problem is that gcc 3.4 and later now uses
> > `.file ""' instead of `.file "<stdin>"' when input comes from stdin.
> 
> Hmm, well the documentation does also say that the feature is only
> supported for backwards compatibility and may go away in the future.
> 
> Still a patch for this problem seems fairly straight forward.
> 
> Jan, Ian - what do you think of this ?
> 
> Cheers
>    Nick
> 
> gas/ChangeLog
> 2005-04-15  Nick Clifton  <address@hidden>
> 
>       PR gas/847
>       * read.c (s_app_file): Call tc_convert_file_name, if defined,
>       before s_app_file_string.
>       * config/tc-ia64.c (ia64_convert_file_name): Define.  Convert
>       empty file names into "<stdin>".
>       * config/tc-ia64.h (tc_convert_file_name): Define.

Why does ia64_canonicalize_symbol_name reject a symbol with no name?
ELF permits them.  Perhaps there are places which call
canonicalize_symbol_name which want to reject empty symbol names, but
I don't see why they should be rejected in canonicalize_symbol_name
itself.

Ian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]