Re: as from binutils 2.9.5.0.31-2 miscompiles kernel code

From: Alan Modra (alan@linuxcare.com.au)
Date: Mon Apr 10 2000 - 05:25:39 EST


On Mon, 10 Apr 2000, Petr Vandrovec wrote:

> Package: binutils
> Version: 2.9.5.0.31-2
>
> vana:~# cat x.s
> .code16
> movl $0x0000e820, %eax
> vana:~# as x.s
> vana:~# objdump --disassemble a.out

You should "objdump -mi8086 --disassemble a.out" here since you are
disassembling a .code16 object file. Plain "objdump -d" assumes 32 bit
mode, (but still plainly shows that there was an assembly error)

> a.out: file format elf32-i386
>
> Disassembly of section .text:
>
> 0000000000000000 <.text>:
> 0: 66 b8 20 e8 mov $0xe820,%ax
> 4: ff (bad)
> 5: ff .byte 0xff

My goof. Fixed 2000-04-03, and in H.J.'s binutils-2.9.5.0.33 This bug
only occurs in 16 bit mode. ie. you don't need to worry at all about
normal gcc output triggering this bug.

Regards, Alan Modra.

-- 
Linuxcare.  Support for the Revolution.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:13 EST