From owner-freebsd-arm@FreeBSD.ORG Fri Aug 15 11:47:25 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FE4410656D4; Fri, 15 Aug 2008 11:47:25 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 308CF8FC17; Fri, 15 Aug 2008 11:47:23 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.14.1/8.13.8) with ESMTP id m7FDcgTK065506; Fri, 15 Aug 2008 15:38:42 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id m7FDcglm065505; Fri, 15 Aug 2008 15:38:42 +0200 (CEST) (envelope-from mlfbsd) Date: Fri, 15 Aug 2008 15:38:41 +0200 From: Olivier Houchard To: Andrew Thompson Message-ID: <20080815133841.GA58191@ci0.org> References: <20080814215435.GA94816@citylink.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080814215435.GA94816@citylink.fud.org.nz> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: static function table in DDB X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 11:47:25 -0000 On Thu, Aug 14, 2008 at 02:54:35PM -0700, Andrew Thompson wrote: > Hi, > > > I notice that DDB on Arm does not have the static functions in the symbol > table (vs. i386 for instance). Is this something that I can enable? It > makes stack traces difficult to use as it will print the function as the > nearest global with a largish offset. > Hi, The problem is probably, your bootloader doesn't load the kernel symbol table, as it is not an ELF loadable section. You can try to boot "kernel.tramp", instead of the regular "kernel". it is a tiny ELF trampoline, which will handles the kernel relocation, and put the symbol table somwhere where the kernel will find it. Regards, Olivier