[U-Boot] [RFC] [PATCH] [NEXT] arm: keep all sections in ELF file

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Fri Oct 11 18:22:35 CEST 2013


2013/10/11 Albert ARIBAUD <albert.u.boot at aribaud.net>:
> (foreword: this is an RFC, and in any case, not intended for
> the upcoming 2013.10 release :) therefore I put notes here in the
> commit message whereas the first actual patch will have notes below
> the comment ('---') line of course.)
>
> Current LDS files /DISCARD/ a lot of sections when linking ELF
> files, causing diagnostic tools such as readelf or objdump to
> produce partial output. Keep all section at link stage, filter
> only at objcopy time so that .bin remains minimal.
>
> NOTES:
>
> *Please test*! :)
>
> While the build reports show slightly text/data/bss/size
> increases, .bin sizes are actually slightly reduced. Go figure.
>
> I have not modified the x86 and MIPS lds files, which still /DISCARD/
> unwanted sections. If the maintainers (Cc:ed) wish that I include their
> lds files in the patch, just let me know (and please test, too).

good idea. I've pushed an initial patch for MIPS to u-boot-mips/testing.
I'll do some testing on weekend.

-- 
Best regards,
Daniel


More information about the U-Boot mailing list