*BSD News Article 94445


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in1.uu.net!144.212.100.12!news.mathworks.com!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!su-news-feed4.bbnplanet.com!news.bbnplanet.com!news.ipsilon.com!usenet
From: Kevin Hayes <kevin@ipsilon.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: objdump disasm on kernel -- not working
Date: Fri, 25 Apr 1997 14:23:41 -0700
Organization: Ipsilon Networks Inc.
Lines: 66
Message-ID: <336120DD.5DC51F25@ipsilon.com>
NNTP-Posting-Host: pitchpole.ipsilon.com
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------6B5359081DDC1EAB7809B8FA"
X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.1.0-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39737

This is a multi-part message in MIME format.

--------------6B5359081DDC1EAB7809B8FA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

-- 
Kevin Hayes                |  I am Pentium, of Borg.
Ipsilon Networks           |  Division is futile.
(408)-990-2086             |  You will be approximated.
kevin@ipsilon.com          |

--------------6B5359081DDC1EAB7809B8FA
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Received: from pitchpole.ipsilon.com (pitchpole.Ipsilon.COM [205.226.8.148]) by mailhost.Ipsilon.COM (8.6.11/8.6.10) with SMTP id QAA06251 for <kevin>; Thu, 24 Apr 1997 16:45:48 -0700
Sender: kevin
Message-ID: <335FF061.148E1EB5@ipsilon.com>
Date: Thu, 24 Apr 1997 16:44:33 -0700
From: Kevin Hayes <kevin@ipsilon.com>
Organization: Ipsilon Networks Inc.
X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.1.0-RELEASE i386)
MIME-Version: 1.0
To: kevin
Subject: objdump disasm on kernel -- not working
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I've been trying to use GNU objdump to get a dump
of a FreeBSD kernel, but it seems to miss the symbolic 
names of the routines:

$ objdump -d kernel | head

kernel:     file format a.out-i386-freebsd

Disassembly of section .text:
00000000 <_btext-f0100000> movw   $0x1234,0x472
00000009 <_btext-f00ffff7> pushl  %ebp
0000000a <_btext-f00ffff6> movl   %esp,%ebp
0000000c <_btext-f00ffff4> pushl  $0x2
0000000e <_btext-f00ffff2> popf   
0000000f <_btext-f00ffff1> movw   %ds,%ax

And we all know that the initial routine should be _start.  :-)
Why the btext???

Now, I know the kernel debugger, ddb, prints out a listing with syms.
But that's a little bit slow to do since it's on a serial port.

Any suggestions?

	K++


-- 
Kevin Hayes                |  I am Pentium, of Borg.
Ipsilon Networks           |  Division is futile.
(408)-990-2086             |  You will be approximated.
kevin@ipsilon.com          |


--------------6B5359081DDC1EAB7809B8FA--