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

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

GAS .space bug in MIPS crossassembler for Linux


From: Philippe Dobbelaere
Subject: GAS .space bug in MIPS crossassembler for Linux
Date: Fri, 17 Nov 2000 11:47:01 +0100

gcc emits 
.align 2
.byte xx
.space 3
to assure bytes are 4-byte aligned in memory.

GAS systematically emits spurious filler bytes for ".byte xx .space 3", 
breaking the build.

GAS from binutils-2.8.1 running on Linux 2.2.13-7mdk
# ./configure  --target=mipsel-elf
GNU assembler version 2.8.1 (mipsel-elf), using BFD version 2.8.1

as.new -adhls  -EL -G 0 -v -g -M -o wrong.o wrong.s > wrong.lst

wrong.s:
        .data
        .globl bad_structure
        .align 2
        .byte  17
        .space 3
        .byte  34
        .space 3
        .globl next_structure

wrong.lst:
   1                            .data
   2                            .globl bad_structure
   3                            .align 2
   4 0000 11                    .byte  17
   5 0001 00000000              .space 3
   6 0005 0022                  .byte  34
   7 0007 00000000              .space 3
   8 000b 00                    .globl next_structure
   9              

Kind regards,
Philippe.

-- 
      ________         Philippe Dobbelaere
      \      /         Functional Area Manager DANA/XANA
       \    /          Alcatel Telecom WB21
        \  /           de Villermontstraat,38 B-2550 Kontich (BELGIUM)
         \/            Phone: +32 3 450 3060
   ALCATEL TELECOM     Fax:   +32 3 450 3285



reply via email to

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