Hi there.

I'm building a new set of tools to build for an embedded i386 target.

I've taken the latest binutils (2.15) along with version 3.4.1 of gcc,
and
version 1.13.0 or newlib.

I tried building the 2.6.10 linux kernel to test my newly built tools,
but
the build is failing early on trying to assemble entry.S. It complains
of an unbalanced parenthesis in several of the instructions.

I've come up with a single line assmebler source file which demonstrates
the problem. Here's the source file:

        cmpl $(100/4), %eax

I assembled this file with my newly built 2.15 assembler, and the
standard
RedHat 9 assembler (2.13). Here are the results:


[EMAIL PROTECTED] temp]$ i386-elf-as --version
GNU assembler 2.15
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License.  This program has absolutely no
warranty.
This assembler was configured for a target of `i386-elf'.
[EMAIL PROTECTED] temp]$ i386-elf-as -a test.S
test.S: Assembler messages:
test.S:2: Error: unbalanced parenthesis in operand 1.
GAS LISTING test.S                      page 1


   1
   2                            cmpl $(100/4), %eax
   3
   4
   5

GAS LISTING test.S                      page 2


NO DEFINED SYMBOLS

NO UNDEFINED SYMBOLS
[EMAIL PROTECTED] temp]$ as --version
GNU assembler 2.13.90.0.18 20030206
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License.  This program has absolutely no
warranty.
This assembler was configured for a target of `i386-redhat-linux'.
[EMAIL PROTECTED] temp]$ as -a test.S
GAS LISTING test.S                      page 1


   1
   2 0000 83F819                cmpl $(100/4), %eax
   3
   4
   5

GAS LISTING test.S                      page 2


Anyone else encountered this problem?

Cheers,
Ian.



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

Reply via email to