Skip to contentSkip to conversation

webkitgtk: Disable gold for mips/mips64

PATCH In review Khem Raj 3 participants 6 messages Aug 8, 2016 – Aug 9, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 webkitgtk: Disable gold for mips/mips64

with binutils 2.27, mips has got the gold support
but it doesnt work for webkitgtk _yet_ therefore
disable it for now.

---
 meta/recipes-sato/webkit/webkitgtk_2.12.3.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-sato/webkit/webkitgtk_2.12.3.bb +2 -0
index f2ba8b6..d9f1c30 100644
@@ -75,6 +75,8 @@ EXTRA_OECMAKE_append_armv4 = " -DENABLE_JIT=OFF "
 # binutils 2.25.1 has a bug on aarch64:
 # https://sourceware.org/bugzilla/show_bug.cgi?id=18430
 EXTRA_OECMAKE_append_aarch64 = " -DUSE_LD_GOLD=OFF "
+EXTRA_OECMAKE_append_mips = " -DUSE_LD_GOLD=OFF "
+EXTRA_OECMAKE_append_mips64 = " -DUSE_LD_GOLD=OFF "
 EXTRA_OECMAKE_append_toolchain-clang = " -DUSE_LD_GOLD=OFF "
 
 # JIT not supported on MIPS either
Signature · 1 line
2.9.2
author
#1 lore raw

PATCH 2/2 libunwind: Do not use gold for linking

This effectively reverts the commit 3dd233ac0c80393824100c54bb525236f8290fd2

gold now emits errors on copy relocs against protected symbols what ld.bfd did in past, however it seems its too conservative.

This does not fix the case for folks who use gold as default linker, however it does make bintuls 2.27 work with default configuration of OE

---
 meta/recipes-support/libunwind/libunwind.inc | 9 ---------
 1 file changed, 9 deletions(-)
meta/recipes-support/libunwind/libunwind.inc +0 -9
index 1c342d3..e4ae8df 100644
@@ -18,15 +18,6 @@ ATOMICOPS_armv5 = "-DAO_USE_PTHREAD_DEFS=1"
 ATOMICOPS_armv4 = "-DAO_USE_PTHREAD_DEFS=1"
 ATOMICOPS ?= ""
 
-LDFLAGS_append_x86 = " -fuse-ld=gold"
-LDFLAGS_append_x86-64 = " -fuse-ld=gold"
-
-LDFLAGS_append_arm = " -fuse-ld=gold"
-LDFLAGS_append_aarch64 = " -fuse-ld=gold"
-
-LDFLAGS_append_powerpc = " -fuse-ld=gold -mbss-plt"
-LDFLAGS_append_powerpc64 = " -fuse-ld=gold -mbss-plt"
-
 SECURITY_LDFLAGS_append_libc-musl = " -lssp_nonshared -lssp"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.9.2
#2 lore raw

Re: [PATCH 2/2] libunwind: Do not use gold for linking

Quoted 12 lines · Khem Raj

This effectively reverts the commit 3dd233ac0c80393824100c54bb525236f8290fd2

gold now emits errors on copy relocs against protected symbols what ld.bfd did in past, however it seems its too conservative.

This does not fix the case for folks who use gold as default linker, however it does make bintuls 2.27 work with default configuration of OE

Presumably this is blocked by the binutils upgrade and should be merged with it and not beforehand?

Ross

author
#3 lore raw

Re: [PATCH 2/2] libunwind: Do not use gold for linking

Quoted 12 lines · Ross

On 8 August 2016 at 23:51, Khem Raj <[email protected] <mailto:[email protected]>> wrote:
This effectively reverts the commit
3dd233ac0c80393824100c54bb525236f8290fd2

gold now emits errors on copy relocs against protected symbols what ld.bfd did in past, however it seems its too conservative.

Quoted 6 lines

This does not fix the case for folks who use gold as default linker, however it does make bintuls 2.27 work with default configuration of OE

Presumably this is blocked by the binutils upgrade and should be merged with it and not beforehand?

Thats right.

Quoted 2 lines

Ross

#4 lore raw
In reply to Khem Raj
Quoted 18 lines · Khem Raj

with binutils 2.27, mips has got the gold support
but it doesnt work for webkitgtk _yet_ therefore
disable it for now.

---
 meta/recipes-sato/webkit/webkitgtk_2.12.3.bb | 2 ++

 1 file changed, 2 insertions(+)
meta/recipes- renamed from meta/recipes-sato/webkit/webkitgtk_2.12.3.bb +0 -0

sato/webkit/webkitgtk_2.12.3.bb
index f2ba8b6..d9f1c30 100644

meta/recipes-sato/webkit/webkitgtk_2.12.3.bb +0 -0
@@ -75,6 +75,8 @@ EXTRA_OECMAKE_append_armv4 = " -DENABLE_JIT=OFF "
  # binutils 2.25.1 has a bug on aarch64:
  # https://sourceware.org/bugzilla/show_bug.cgi?id=18430

 EXTRA_OECMAKE_append_aarch64 = " -DUSE_LD_GOLD=OFF "

meta/recipes-sato/webkit/webkitgtk_2.12.3.bb EXTRA_OECMAKE_append_armv4 = " -DENABLE_JIT=OFF " · line 79

Quoted 2 lines
meta/recipes-sato/webkit/webkitgtk_2.12.3.bb +2 -0
+EXTRA_OECMAKE_append_mips = " -DUSE_LD_GOLD=OFF "
+EXTRA_OECMAKE_append_mips64 = " -DUSE_LD_GOLD=OFF "

What about mipsel and mips64el? Should need the same I would think...

author
#5 lore raw
Quoted 13 lines · André Draszik
Quoted 9 lines · Khem Raj

with binutils 2.27, mips has got the gold support
but it doesnt work for webkitgtk _yet_ therefore
disable it for now.

---
 meta/recipes-sato/webkit/webkitgtk_2.12.3.bb | 2 ++
 1 file changed, 2 insertions(+)
Quoted 13 lines

meta/recipes-sato/webkit/webkitgtk_2.12.3.bb EXTRA_OECMAKE_append_armv4 = " -DENABLE_JIT=OFF " · line 79

Quoted 11 lines
meta/recipes- renamed from meta/recipes-sato/webkit/webkitgtk_2.12.3.bb +0 -0

sato/webkit/webkitgtk_2.12.3.bb
index f2ba8b6..d9f1c30 100644

meta/recipes-sato/webkit/webkitgtk_2.12.3.bb +2 -0
@@ -75,6 +75,8 @@ EXTRA_OECMAKE_append_armv4 = " -DENABLE_JIT=OFF "
 # binutils 2.25.1 has a bug on aarch64:
 # https://sourceware.org/bugzilla/show_bug.cgi?id=18430
 EXTRA_OECMAKE_append_aarch64 = " -DUSE_LD_GOLD=OFF "
+EXTRA_OECMAKE_append_mips = " -DUSE_LD_GOLD=OFF "
+EXTRA_OECMAKE_append_mips64 = " -DUSE_LD_GOLD=OFF "

What about mipsel and mips64el? Should need the same I would think…

yes, I would think so. I do not test the el parts.