]> git.baikalelectronics.ru Git - uboot.git/commit
microblaze: Enable GCC garbage collector for full U-Boot
authorMichal Simek <michal.simek@xilinx.com>
Wed, 4 Nov 2020 13:01:45 +0000 (14:01 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 20 Nov 2020 09:42:53 +0000 (10:42 +0100)
commit97d04543b032dc3416606ea02e5a78a9e462298a
treebff3436efa5ed57468f4fb300e54ddafae922b05
parented58cd4723b15901b19b8252bd9de3e1fa00912d
microblaze: Enable GCC garbage collector for full U-Boot

GCC's garbage collector works for Microblaze for quite a long time but none
has enabled it.
The same change has be done for example by commit a1d798506929 ("arc:
Eliminate unused code and data with GCC's garbage collector").

Before:
   text    data     bss     dec     hex filename
 588760   33592   39192  661544   a1828 u-boot

After:
   text    data     bss     dec     hex filename
 504504   32164   38608  575276   8c72c u-boot

Which saves almost 15% of memory footprint.

Also group symbols/functions to proper section.

Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/config.mk
arch/microblaze/cpu/u-boot.lds