bug-gnu-utils
[Top][All Lists]
Advanced

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

ARM as warnings in as 2.12


From: Willi Theiß
Subject: ARM as warnings in as 2.12
Date: Wed, 03 Jul 2002 13:34:29 +0200

Hi all,

I have found the following problem:

ARM assembler (binutils-2.12) gives warnings where (binutils-2.10) did
not.

Attached is a small file (vectors.s) to show this.

Output from my machine (Windows NT):

arm-elf-as -version
GNU assembler 2.12
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 `arm-elf'.

arm-elf-as -o y.o vectors.s
vectors.s: Assembler messages:
vectors.s:6: Warning: rest of line ignored; first ignored character is
`,'



The problem comes from ",@progbits" part in line 6. The preprocessor
interprets "@" as a comment char and throws away the rest of the line,
leaving a "," which the assembler warns.
My problem is that in binutils-2.10 there are no warnings.
A project which compiled without warnings under 2.10 does now produce
warnings when using binutils-2.12.
When using the gcc-option "-ffunction-sections" then there are lot of
such warnings.

Is there a preferred method for avoiding these warnings?

My temporary solution is a slight modification in
   binutils-2.12/gas/config/obj-elf.c (date 28-Jan-2002)

diff obj-elf.c obj-elf.c.org
974,978c974
< #if defined TC_ARM && defined OBJ_ELF
<          else if (c != '\n')
< #else
<          else
< #endif
---
>             else


But I am not sure about side efffects of this change.

Regards

Willi

-- 
+-----------------------------------------------------------------+ 
|                                                                 | 
|              HighTec EDV-Systeme GmbH                           | 
|              Feldmannstraße 98                                  | 
|              D - 66119 Saarbrücken                              | 
|              GERMANY                                            | 
|                                                                 | 
|              Email:    address@hidden              | 
|              Internet: http://www.hightec-rt.com                | 
|              Voice:    (++49) 681 - 92613 - 20                  | 
|              Fax:      (++49) 681 - 92613 - 26                  | 
|                                                                 | 
+-----------------------------------------------------------------+
        .file   "vectors.S"

        .code   32

        .section .vectors,"ax",@progbits
        .global __exception_handlers
__exception_handlers:
        ldr     pc,.reset_vector
        ldr     pc,.undefined_instruction
        ldr     pc,.software_interrupt
        ldr     pc,.abort_prefetch
        ldr     pc,.abort_data
        .word   0
        ldr     pc,.IRQ
        ldr     pc,.FIQ



        .global vectors
vectors:
.reset_vector:
        .word   reset_vector
.undefined_instruction:
        .word   undefined_instruction
.software_interrupt:
        .word   software_interrupt
.abort_prefetch:
        .word   abort_prefetch
.abort_data:
        .word   abort_data
        .word   0
.IRQ:
        .word   IRQ
.FIQ:
        .word   FIQ


reply via email to

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