Skip to contentSkip to conversation

disable hash-style=gnu for mips machines

PATCH Khem Raj 2 participants 2 messages Dec 5, 2008

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

Hi

mips dynamic section is not compatible with gnu hash style there we need to disable this option when building for mips targets. Attached patch (tested on eglibc) fixes the problem.

OK for dev ?

Thanks

-Khem

conf/distro/include/angstrom-eglibc.inc +1 -1
index 1d38e5f..c0d87a4 100644
@@ -29,7 +29,7 @@ BUILD_OPTIMIZATION = "-Os"
 BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_sparc = "-O2"
 
-TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"
 
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
conf/distro/include/angstrom-glibc.inc +1 -1
index fdb59f3..b14f880 100644
@@ -33,7 +33,7 @@ BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_pn-glibc = "-O2"
 BUILD_OPTIMIZATION_sparc = "-O2"
 
-TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"
 
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
conf/distro/include/angstrom-uclibc.inc +1 -1
index 8383ddc..71b8862 100644
@@ -33,7 +33,7 @@ BUILD_OPTIMIZATION = "-Os"
 #Note that this testing was done without the gcc-pr32889.patch.
 FULL_OPTIMIZATION_avr32 = "-Os -fomit-frame-pointer"
 
-TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"
 
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
#1 lore raw
Quoted 7 lines · Khem Raj

Hi

mips dynamic section is not compatible with gnu hash style there we need to disable this option when building for mips targets. Attached patch (tested on eglibc) fixes the problem.

OK for dev ?

Looks OK to me.

regards,

Koen

Quoted 13 lines

Thanks

-Khem

------------------------------------------------------------------------

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel