Dear =?ISO-8859-2?Q?Viktor_K=F8iv=E1k?=, In message <cajxx_aysp3co1cassngycqe_ydnibcmrwj7p6ggr6t-d9qb...@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. 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: w...@denx.de I don't mind criticism. You know me. I've never been one to take offence at criticism. No one could say I'm the sort to take offence at criticism -- Not twice, anyway. Not without blowing bubbles. - Terry Pratchett, _Witches Abroad_ _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot