[U-Boot] non-needed objects added to resulting U-Boot image

Wolfgang Denk wd at denx.de
Tue Oct 14 14:33:51 CEST 2008


Dear "Roman Mashak",

In message <40a670230810140530s7143995ex6eaaf251bf9de4c7 at mail.gmail.com> you wrote:
> 
> I was building u-boot for ARM based custom board and I found that
> unused and no needed object files are built and linked to the
> resulting U-Boot image. For example, my board doesn't have PCI,
> PCMCIA, USB or Ethernet, but according to the build-log, corresponding
> archives have been built and linked:
> 
> drivers/net/libnet.a
> drivers/net/sk98lin/libsk98lin.a
> drivers/pci/libpci.a
> drivers/pcmcia/libpcmcia.a
> 
> and so on.

These libraries may be used in the link command of your image, but do
you actually see any unused objects included in your linked image?

> Don't think it is intended behavior, on the other hand I have not
> included any support for this modules in my configuration. What can be
> the reason, has anybody had this before?

Um... you know what a library is and how the linker processes it?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Why can you only have two doors on a chicken coop? If it had four  it
would be a chicken sedan.


More information about the U-Boot mailing list