bug-binutils
[Top][All Lists]
Advanced

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

as 2.15 produces unbalanced parenthesis error, version 2.13 OK


From: Hamilton, Ian
Subject: as 2.15 produces unbalanced parenthesis error, version 2.13 OK
Date: Tue, 15 Feb 2005 17:06:01 -0000

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:


address@hidden 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'.
address@hidden 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
address@hidden 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'.
address@hidden 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.





reply via email to

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