From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Carlier Date: Wed, 17 Nov 2010 14:30:56 +0100 Subject: [U-Boot] [PATCH v3] Switch from archive libraries to partial linking In-Reply-To: <20101115105407.2A24714EA7E@gemini.denx.de> References: <1289253872-16891-1-git-send-email-sebastien.carlier@gmail.com> <201011100157.31202.vapier@gentoo.org> <20101110080708.GA8145@safe.home.local> <20101115075129.9C820134FEF@gemini.denx.de> <20101115080950.GA26767@safe.home.local> <20101115105407.2A24714EA7E@gemini.denx.de> Message-ID: <20101117133056.GB23875@safe.home.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang, On 2010-11-15 11:54:07, Wolfgang Denk wrote: > > I notice that the patch affects the size of the resulting U-Boot > images. The size increase you noted seems to completely go away when adding --gc-sections to LDFLAGS, but this option apparently brings its own issues when the linker discards important unreferenced bits: http://www.mail-archive.com/u-boot at lists.denx.de/msg41762.html http://www.mail-archive.com/u-boot at lists.denx.de/msg42063.html These problems can be fixed within linker scripts, but I think it might be safer to use --gc-sections for diagnostic purposes only... > MPC8xx boards break with long lists of multiple definitions of > symbols, like that: > > Configuring for FPS860L board... > lib/libgeneric.o: In function `vsprintf': > /home/wd/git/u-boot/work/lib/vsprintf.c:480: multiple definition of `vsprintf' > ... > > Have you seen that, too? Unfortunately I have not been able to reproduce these errors with the toolchain I am using (gcc 4.4.5 and binutils 2.20.1.20100303, based on emdebian squeeze packages). Can you please point me to the toolchain you are using? Regards, -- Sebastien