Package: binutils
Version: 2.18.1~cvs20080103-1
Severity: normal
File: /usr/bin/objdump

Hello,

        [EMAIL PROTECTED]:/tmp$ cat test.S
        stmia   sp, {r0-r12}
        mov     pc, lr

        [EMAIL PROTECTED]:/tmp$ as test.S 

        [EMAIL PROTECTED]:/tmp$ objdump -d a.out 

        a.out:     file format elf32-littlearm

        Disassembly of section .text:

        00000000 <.text>:
           0:   e88d1fff        stm     sp, {r0, r1, r2, r3, r4, r5, r6, r7, 
r8, r9, sl, fp, ip}
           4:   e1a0f00e        mov     pc, lr

According to the ARM Architecture Reference Manual (Issue I)
stm is not a valid ARM instruction.  The addressing mode is not
optional.  as is able to compile 'stm sp, ...', but using binutils from stable
(i.e. version 2.17-3) I get:

        [EMAIL PROTECTED]:/tmp$ arm-linux-objdump -d a.out 

        a.out:     file format elf32-littlearm

        Disassembly of section .text:

        00000000 <.text>:
           0:   e88d1fff        stmia   sp, {r0, r1, r2, r3, r4, r5, r6, r7, 
r8, r9, sl, fp, ip}
           4:   e1a0f00e        mov     pc, lr

        [EMAIL PROTECTED]:/tmp$ sed -i s/stmia/stm/ test.S 

        [EMAIL PROTECTED]:/tmp$ as test.S 
        test.S: Assembler messages:
        test.S:1: Error: bad instruction `stm sp,{r0-r12}'

I have no concerns that as assumes that stm means stmia, but I think the
disassembler should give stmia.

Best regards
Uwe

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: arm (armv5tejl)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-gbc62f637-dirty
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages binutils depends on:
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries

binutils recommends no packages.

-- no debconf information

-- 
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to