Re: [PATCH] ARM: socfpga: generate smaller images when multiple boards are selected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> writes:

The socfpga xload images are limited to 64KiB. This doesn't fit if
multiple boards are selected. The reason is that we include huge
C files and arrays in the early init code which get compiled once for each board. -ffunction-sections is without effect here since all
functions have the same name and hence we get the same function
multiple times in the same section.

To overcome this we surround all function names with a SECT() macro which is used to add a board specific prefix to the section names. This way -ffunction-sections can now do its work and discard unused functions.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

\o/

Tested-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>


Thanks,
Steffen

--
Pengutronix e.K. | Steffen Trumtrar | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany| Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555|

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux