------- Additional Comments From hjl dot tools at gmail dot com  2010-05-26 
15:45 -------
(In reply to comment #2)
> Hi H.J.
> 
>   The assembler is failing to parse the .section directive because the #
> character starts a line comment.  If you assemble your test case with the -f
> option added to the command line then it will work.
> 
>   Presumably the # character is required by Solaris assembler.  Do you know if
> the Solaris assembler treats # as being a line command character at places 
> other

I don't know.

> than inside a .section directive ?  If so then we are probably never going to 
> be
> able to be compatible with it.

GNU assembler doesn't support this Solaris compatibility
even if it is configured for x86_64-solaris:

---
[...@gnu-6 gas]$ ./as-new -o x.o x.s
x.s: Assembler messages:
x.s:1: Error: character following name is not '#'
[...@gnu-6 gas]$ ./as-new --version
GNU assembler (GNU Binutils) 2.20.51.20100524
Copyright 2010 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-solaris'.
[...@gnu-6 gas]$ 
---

> 
>   The uploaded patch improves the error message slightly.  What do you think
of it ?
> 

I think we should either remove this Solaris compatibility or
fix it.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
            Summary|Solaris assembler           |Solaris assembler
                   |compatability doesn't work  |compatibility doesn't work


http://sourceware.org/bugzilla/show_bug.cgi?id=11601

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to