[MIPS] syscall() segv on mips1

Maxime Bizon mbizon at freebox.fr
Mon Sep 29 16:24:48 UTC 2008


On Mon, 2008-09-29 at 10:36 -0500, sjhill at realitydiluted.com wrote:

> Would you kindly do an 'objdump -d' on your 'syscall.o' file and send
> it to me? Your patch is probably fine, by I want to see your generated
> assembly code. Thanks.

syscall.os:     file format elf32-tradbigmips


Disassembly of section .text:

00000000 <syscall>:
   0:	3c1c0000 	lui	gp,0x0
   4:	279c0000 	addiu	gp,gp,0
   8:	0399e021 	addu	gp,gp,t9
   c:	00801021 	move	v0,a0
  10:	00a02021 	move	a0,a1
  14:	00c02821 	move	a1,a2
  18:	00e03021 	move	a2,a3
  1c:	8fa70010 	lw	a3,16(sp)
  20:	8fa80014 	lw	t0,20(sp)
  24:	8fa90018 	lw	t1,24(sp)
  28:	8faa001c 	lw	t2,28(sp)
  2c:	27bdffe0 	addiu	sp,sp,-32
  30:	afa80010 	sw	t0,16(sp)
  34:	afa90014 	sw	t1,20(sp)
  38:	afaa0018 	sw	t2,24(sp)
  3c:	afa2001c 	sw	v0,28(sp)
  40:	8fa2001c 	lw	v0,28(sp)
  44:	0000000c 	syscall
  48:	14e00002 	bnez	a3,54 <syscall+0x54>
  4c:	27bd0020 	addiu	sp,sp,32
  50:	03e00008 	jr	ra
  54:	00402021 	move	a0,v0
  58:	8f990000 	lw	t9,0(gp)
  5c:	00000000 	nop
  60:	03200008 	jr	t9
  64:	00000000 	nop
	...

-- 
Maxime




More information about the uClibc mailing list