Skip to contentSkip to conversation

efivar: force shared libgcc for Nios II

PATCH Superseded Erico Nunes 2 participants 4 messages Jun 28, 2016 – Jun 30, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index de48bc9..ac51097 100644
@@ -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
#1 lore raw

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
#2 lore raw

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

#3 lore raw

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