
On Thu, Apr 20, 2017 at 12:21:41AM +0200, Andreas Färber wrote:
Am 18.04.2017 um 22:38 schrieb André Przywara:
On 16/04/17 02:20, Andreas Färber wrote:
Build-testing this series with both pine64_plus_defconfig and orangepi_pc2_defconfig, I ran into a ~1616 size overflow with gcc5. gcc6 worked okay. Would be helpful to document such requirements here.
Can you say which version of GCC 5? I think I used GCC 5.3.0 for a while and this was fine, but I need to re-check this.
Failure was with a Linaro GCC 5.1.
Working was Linaro GCC 6.3.1.
I would happily use our latest SUSE GCC 7.0.1 if only U-Boot had a private libgcc for aarch64... :(
With some quick hacking here, we could get away with adding arch/arm/lib/dummy.S, with a comment of why (to have an empty lib.a be generated) and then we could fake out the not-required libgcc.
The other way to go here would be to see what platforms really require -lgcc and introduce another flag, CONFIG_USE_COMPILER_LIBGCC and then allow for PLATFORM_LIBGCC to just be empty.