kdb
[Top] [All Lists]

Re: 2.6.7: kallsyms --all-symbols shows a shift in the symbol addreses

To: Xavier Bru <xavier.bru@xxxxxxxx>
Subject: Re: 2.6.7: kallsyms --all-symbols shows a shift in the symbol addreses
From: "Randy.Dunlap" <rddunlap@xxxxxxxx>
Date: Mon, 21 Jun 2004 09:29:46 -0700
Cc: linux-ia64@xxxxxxxxxxxxxxx, kdb@xxxxxxxxxxx
In-reply-to: <40D70AAC.2010006@bull.net>
Organization: OSDL
References: <40D70AAC.2010006@bull.net>
Sender: kdb-bounce@xxxxxxxxxxx
On Mon, 21 Jun 2004 18:19:56 +0200 Xavier Bru wrote:

| Hi all!
| 
| There is a problem with the all kallsyms support in 2.6.7 
| scripts/kallsyms.c.
| Building the table reserves the adresses for all the kernel symbols in 
| first step, then generates the effective addresses of the symbols in step 2.
| The problem is that the symbols used to build the symbol table are not 
| taken in account for the size calculation, but are included in the table 
| in step 2.
| This makes the table "bigger" than was allocated, and the symbols that 
| come behind are shifted.
| This makes kallsyms (and KDB) give wrong addresses for these symbols.
| 
| One solution is to exclude from the symbol table the symbols used for 
| building it (As was provided in KDB patch :-)

Is this the same problem that Keith Owens made a patch for
against 2.6.7-rc3 on 2004-june-15?
Subject: [patch 2.6.7-rc3] When two kallsyms passes are not enough

http://marc.theaimsgroup.com/?l=linux-kernel&m=108728234402407&w=2

--
~Randy
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>