mips: genmongoosev/start/start.S

Joel Sherrill joel.sherrill at OARcorp.com
Wed Sep 10 15:00:02 UTC 2003


Ralf Corsepius wrote:

> On Wed, 2003-09-10 at 15:28, Bill Gatliff wrote:
> 
>>Ralf:
>>
>>
>>What do you see when you run objdump --disassemble on the 
>>binutils-2.13.2.1-generated mipsbug.o?
> 
> 
> # cat mipsbug.s
>    sw  $8,0xfffe0130
> 
> # mips-rtems4.6-as  -G0 -EB -mips1 -g0 -32 -v -o mipsbug.o mipsbug.s
> GNU assembler version 2.13.2.1 (mips-rtems4.6) using BFD version 2.13.2.1
> 
> # mips-rtems4.6-objdump --disassemble mipsbug.o
>  
> mipsbug.o:     file format elf32-bigmips
>  
> Disassembly of section .text:
>  
> 00000000 <.text>:
>    0:   3c01fffe        lui     at,0xfffe
>    4:   ac280130        sw      t0,304(at)

FWIW I get the same lw code output by gcc 3.2.3 and 3.3.1 for this
C function that is handwritten in start.S.

void f( int x)
{
   int *p = (int *)0xFFFe0130;
   *p = x;
}

It could be a bug in binutils 2.14.  Do you want to post it to
the binutils list and cc me?

> Ralf
> 
> 



-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the users mailing list