[U-Boot] BIOS EMULATOR driver

Marek Vasut marex at denx.de
Tue Mar 27 19:48:59 CEST 2012


Dear Wolfgang Denk,

> Dear =?ISO-8859-2?Q?Viktor_K=F8iv=E1k?=,
> 
> In message <CAJxx_aysp3cO1CasSNgycqE_yDNiBcMRwJ7P6GGR6T-d9QbB-
A at mail.gmail.com> you wrote:
> > >> And even if it was, the combination of -ffunction-sections /
> > >> -fdata-sections with --gc-sections should prevent any damages.
> 
> ...
> 
> > Yes that's the main problem. Lots of code i unused. Basically
> > everything except BootVideoCardBIOS, that is use in ATI video driver.
> > I've got two solution of this problem. First, mark all unused code by
> > some macro and compile it only conditionally or remove it. But I not
> > sure if someone use this death code for debug purposes.
> 
> Did you check if you really find any such code in your linked image?
> As I already explained, normally -ffunction-sections / -fdata-sections
> with --gc-sections should make sure any unused functions get dropped
> automatically.

Sure, but I see no point in keeping such dead code in U-Boot code base. Aka. why 
keep functions in U-Boot that are never used?

> 
> Best regards,
> 
> Wolfgang Denk

Best regards,
Marek Vasut


More information about the U-Boot mailing list