Subject: Re: objdump -d dumps core
To: None <tech-toolchain@NetBSD.ORG>
From: Martin Husemann <martin@duskware.de>
List: tech-toolchain
Date: 02/02/2003 02:17:27
On Sat, Feb 01, 2003 at 05:37:40PM +0100, Martin Husemann wrote:

> Just noticed that objdump -d tends to dump core on sparc64.

I've fixed it. It happens when a branch instruction starts an object file:

tty_conf.o:     file format elf64-sparc

Disassembly of section .text:

0000000000000000 <ttynullioctl>:
   0:   81 c3 e0 08     retl 
   4:   90 10 3f fc     mov  -4, %o0

The code tried to look at the instruction before the retl (in this example)
and crashed.

Martin