In message <[EMAIL PROTECTED]> you wrote: > "Ben Warren" <[EMAIL PROTECTED]> wrote: > > I propose to wrap both the 'board/$(BOARDDIR)/lib$(BOARD).a' and > > 'cpu/$(CPU)/lib$(CPU).a' arguments to ld in > > --whole-module/--no-whole-module in order to accomplish this goal. We > > definitely don't want to do this across the board because image size > > will increase quite a bit due to unused code. > > You can counter that additional size and more by adding --gc-sections to > the linker command line and -ffunction-sections -fdata-sections to gcc. > That will probably even get rid of the weak implementation if a strong > definition is provided. > > There's a catch though -- if your linker script isn't prepared for > this, things will break.
... and it probably doesn't work with older toolchains either. 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: [EMAIL PROTECTED] Every solution breeds new problems. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users