Carlos O'Donell wrote: > On Wed, Dec 21, 2005 at 04:45:14PM +0900, NAGATA Shoji wrote: > > I'm using ARM GNU 2005q3-2 build on RH9 and encountered an error as below. > > (Using 2005q3-1 as well, the result was the same.) > > > > [Compiling an attached file with]: > > arm-none-linux-gnueabi-gcc -ansi -fsigned-char -O -c sample.c > > > > [Actual results]: > > /tmp/ccqRgu4s.s: Assembler messages: > > /tmp/ccqRgu4s.s:121: Error: bad immediate value for half-word offset (256) > > I can't reproduce this error on our test systems. > > Please run the compile with -v to verify which assembler is being > called. Please also provide the output assembly generated by the > compiler, use the -S switch for this. "-v" output is as below and "-S" output is attached. Thanks. ----- % arm-none-linux-gnueabi-gcc -ansi -fsigned-char -O -c sample.c Reading specs from /home/*****/CSQ3-2/v6m_le/lib/gcc/arm-none-linux-gnueabi/3.4.4/specs Configured with: ../configure --target=arm-none-linux-gnueabi --program-prefix=arm_v6m_le- --enable-languages=c,c++ --disable-checking --enable-shared --enable-cross --enable-threads --disable-libmudflap --with-gnu-as --with-gnu-ld --prefix=/home/*****/CSQ3-2/v6m_le --with-sysroot=/home/*****/CSQ3-2/v6m_le/target --with-arch=armv6j --with-fpu=vfp --with-float=softfp Thread model: posix gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2) /home/*****/CSQ3-2/v6m_le/libexec/gcc/arm-none-linux-gnueabi/3.4.4/cc1 -quiet -v sample.c -quiet -dumpbase sample.c -march=armv6j -mfloat-abi=softfp -mfpu=vfp -ansi -auxbase sample -O -ansi -version -fsigned-char -o /tmp/ccXW2lCZ.s ignoring nonexistent directory "/home/*****/CSQ3-2/v6m_le/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/include" #include "..." search starts here: #include <...> search starts here: /home/*****/CSQ3-2/v6m_le/target/usr/local/include /home/*****/CSQ3-2/v6m_le/lib/gcc/arm-none-linux-gnueabi/3.4.4/include /home/*****/CSQ3-2/v6m_le/target/usr/include End of search list. GNU C version 3.4.4 (release) (CodeSourcery ARM 2005q3-2) (arm-none-linux-gnueabi) compiled by GNU C version 3.2.2 20030222 (Red Hat Linux 3.2.2-5). GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128609 /home/*****/CSQ3-2/v6m_le/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/as -march=armv6j -mfloat-abi=softfp -mfpu=vfp -meabi=4 -o sample.o /tmp/ccXW2lCZ.s /tmp/ccXW2lCZ.s: Assembler messages: /tmp/ccXW2lCZ.s:121: Error: bad immediate value for half-word offset (256) /---------------------------------------------------------------------------// / NAGATA Shoji <nagata.shoji@xxxxxxxxxxxxxxxx>, Development Environment Gr. // / Base System Development Center, Panasonic Mobile Communications Co., Ltd. // /===========================================================================//
Attachment:
sample.s
Description: Binary data