efivar: force shared libgcc for Nios II
PATCH 1/1 efivar: force shared libgcc for Nios II
efivar for Nios II also has to be linked with shared libgcc to avoid an error due to FDE encoding in static libgcc when linking libefiboot.so.
Fixes:
http://autobuild.buildroot.net/results/0c9/0c90e3e7ad41d21dd832f6f266af35fc19185170/
--- package/efivar/efivar.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/efivar/efivar.mk +2 -2
@@ -21,9 +21,9 @@ EFIVAR_MAKE_OPTS = \ BINTARGETS=efivar \ LDFLAGS="$(TARGET_LDFLAGS) -fPIC" -# Explicitly linking with shared libgcc is required on MicroBlaze, +# Explicitly linking with shared libgcc is required on MicroBlaze and Nios II, # otherwise it fails due to FDE encoding in static libgcc. -ifeq ($(BR2_microblaze),y) +ifeq ($(filter y,$(BR2_microblaze) $(BR2_nios2)),y) EFIVAR_MAKE_OPTS += SOFLAGS="-shared -shared-libgcc" endif
Signature · 1 line
2.9.0
PATCH 1/1 efivar: force shared libgcc for Nios II
Hello,
package/efivar/efivar.mk EFIVAR_MAKE_OPTS = \ · line 26
Quoted 5 lines · Erico Nunes
package/efivar/efivar.mk +2
-2-# Explicitly linking with shared libgcc is required on MicroBlaze, +# Explicitly linking with shared libgcc is required on MicroBlaze and Nios II, # otherwise it fails due to FDE encoding in static libgcc. -ifeq ($(BR2_microblaze),y) +ifeq ($(filter y,$(BR2_microblaze) $(BR2_nios2)),y)
ifeq ($(BR2_microblaze)$(BR2_nios2),y)
is enough.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 efivar: force shared libgcc for Nios II
Hi Thomas.
Quoted 1 line · Thomas Petazzoni
ifeq ($(BR2_microblaze)$(BR2_nios2),y)
I have submitted a v2 and marked this one as superseded.
Thank you for the review.
?rico
PATCH 1/1 efivar: force shared libgcc for Nios II
Hello,
Quoted 1 line · Erico Nunes
I have submitted a v2 and marked this one as superseded.
Thanks, I've seen the v2, looks good!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com