Skip to contentSkip to conversation

libunwind: use gold for all archs

PATCH In review Robert Yang 2 participants 4 messages Apr 20, 2015 – Apr 22, 2015

lore
Share & tools
lore
#0 lore raw

cover libunwind: use gold for all archs

The following changes since commit 97d56a5b8e4f15eb32095f242eb2fd62fc5d85f2:

gmp: remove referencing paths from the build host (2015-04-19 13:34:06 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/libunwind
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/libunwind

Robert Yang (1):
libunwind: use gold for all archs

 meta/recipes-support/libunwind/libunwind.inc |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 libunwind: use gold for all archs

At least the following boards have build errors without using gold:
qemux86, qemux86-64, qemuarm, qemuaarch64, qemuppc.

The error is:
ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
ld: failed to set dynamic section sizes: Bad value
ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
ld: failed to set dynamic section sizes: Bad value
| collect2: error: ld returned 1 exit status

So use gold for all archs to fix the problem.

---
 meta/recipes-support/libunwind/libunwind.inc |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
meta/recipes-support/libunwind/libunwind.inc +1 -4
index 56905c2..c4a7b5e 100644
@@ -23,10 +23,7 @@ LIBATOMICS_armv5 = "-latomic_ops"
 LIBATOMICS_armv4 = "-latomic_ops"
 LIBATOMICS ?= ""
 
-LDFLAGS_append_x86 = " -fuse-ld=gold"
-LDFLAGS_append_x86-64 = " -fuse-ld=gold"
-
-LDFLAGS_append_aarch64 = " -fuse-ld=gold"
+LDFLAGS_append = " -fuse-ld=gold"
 
 DEPENDS += "${DEPLIBATOMICS}"
 DEPLIBATOMICS_armv5 = "libatomics-ops"
Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 6 lines · Robert Yang

At least the following boards have build errors without using gold:
qemux86, qemux86-64, qemuarm, qemuaarch64, qemuppc.

Quoted 8 lines

The error is:
ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
ld: failed to set dynamic section sizes: Bad value
ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
ld: failed to set dynamic section sizes: Bad value
| collect2: error: ld returned 1 exit status

So use gold for all archs to fix the problem.

Please test it with gold on mips, before we apply this patch

Quoted 30 lines

---
meta/recipes-support/libunwind/libunwind.inc | 5 +----

1 file changed, 1 insertion(+), 4 deletions(-)
meta/recipes-support/libunwind/libunwind.inc +0 -0
index 56905c2..c4a7b5e 100644
@@ -23,10 +23,7 @@ LIBATOMICS_armv5 = "-latomic_ops"

LIBATOMICS_armv4 = "-latomic_ops"
LIBATOMICS ?= ""

meta/recipes-support/libunwind/libunwind.inc +1 -4
-LDFLAGS_append_x86 = " -fuse-ld=gold"
-LDFLAGS_append_x86-64 = " -fuse-ld=gold"
-
-LDFLAGS_append_aarch64 = " -fuse-ld=gold"
+LDFLAGS_append = " -fuse-ld=gold"

DEPENDS += "${DEPLIBATOMICS}"
DEPLIBATOMICS_armv5 = "libatomics-ops"

Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
#3 lore raw
Quoted 13 lines · Khem Raj
Quoted 13 lines · Robert Yang

At least the following boards have build errors without using gold:
qemux86, qemux86-64, qemuarm, qemuaarch64, qemuppc.

The error is:
ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
ld: failed to set dynamic section sizes: Bad value
ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
ld: failed to set dynamic section sizes: Bad value
| collect2: error: ld returned 1 exit status

Quoted 3 lines
Quoted 1 line

So use gold for all archs to fix the problem.

Please test it with gold on mips, before we apply this patch

Sorry, gold doesn't work for mips or mips64, I will send a patch for that.

// Robert

Quoted 34 lines
Quoted 31 lines

---
meta/recipes-support/libunwind/libunwind.inc | 5 +----

1 file changed, 1 insertion(+), 4 deletions(-)
meta/recipes-support/libunwind/libunwind.inc +0 -0
index 56905c2..c4a7b5e 100644
@@ -23,10 +23,7 @@ LIBATOMICS_armv5 = "-latomic_ops"

LIBATOMICS_armv4 = "-latomic_ops"
LIBATOMICS ?= ""

meta/recipes-support/libunwind/libunwind.inc +1 -4
-LDFLAGS_append_x86 = " -fuse-ld=gold"
-LDFLAGS_append_x86-64 = " -fuse-ld=gold"
-
-LDFLAGS_append_aarch64 = " -fuse-ld=gold"
+LDFLAGS_append = " -fuse-ld=gold"

DEPENDS += "${DEPLIBATOMICS}"
DEPLIBATOMICS_armv5 = "libatomics-ops"
--
1.7.9.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core