This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linker errors building a kernel


On Mon, Nov 12, 2001 at 02:13:36PM +1030, Alan Modra wrote:
> On Sun, Nov 11, 2001 at 10:08:27PM -0500, Daniel Jacobowitz wrote:
> > Has anyone tried to build a Linux kernel from CVS binutils since the
> > linkonce checking went in?
> 
> Just tried 2.4.14 on x86-linux
> 
> drivers/block/block.o: In function `lo_send':
> drivers/block/block.o(.text+0x857f): undefined reference to `deactivate_page'
> drivers/block/block.o(.text+0x85c9): undefined reference to `deactivate_page'
> 
> Looks like loop.c is a bit dodgy.  Maybe I should trawl the kernel list.
> No "bizarre errors".

Further investigation shows me that the references causing problems are
from the .pdr section.  The .pdr contains an entry for every function,
including those in dodgy, later-deleted sections.  I don't know what to
do about them; the format of the .pdr is such that I could easily
remove references, in the exact same code as my previous patch, I
suppose.  Is it sane to give BFD knowledge of the format?

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]