summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-04-25 12:43:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-29 09:55:31 +0100
commit35c08bed88f9c6aaf3295a315fd3d8e79322ca34 (patch)
tree9bce3f1b22da2ac77f58f45d4084287820bc57a6
parentbb3fc52010cf7e1abca5b0ae727080a41f1ff58c (diff)
downloadpoky-35c08bed88f9c6aaf3295a315fd3d8e79322ca34.tar.gz
libunwind: fix build when unused sections are garbage collected
poky-tiny uses gcsections.inc to strip unused sections from the binaries. However, on qemuarm5/qemuarm64 with poky-tiny this appears to result in too much being removed and the link fails: ld: .libs/Gtest-trace: hidden symbol `__aarch64_cas8_acq_rel' in libgcc.a(cas_8_4.o) is referenced by DSO Work around this by disabling gcsections.inc. (From OE-Core rev: 3291827895906e879a7f115eae78aec921a5aa96) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libunwind/libunwind_1.8.1.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind_1.8.1.bb b/meta/recipes-support/libunwind/libunwind_1.8.1.bb
index b2c592b435..da87f3e3ee 100644
--- a/meta/recipes-support/libunwind/libunwind_1.8.1.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.8.1.bb
@@ -33,6 +33,10 @@ EXTRA_OECONF = "--enable-static"
33ARM_INSTRUCTION_SET:armv4 = "arm" 33ARM_INSTRUCTION_SET:armv4 = "arm"
34ARM_INSTRUCTION_SET:armv5 = "arm" 34ARM_INSTRUCTION_SET:armv5 = "arm"
35 35
36# With qemuarm64 and poky-tiny:
37# ld: .libs/Gtest-trace: hidden symbol `__aarch64_cas8_acq_rel' in libgcc.a(cas_8_4.o) is referenced by DSO
38LDFLAGS_SECTION_REMOVAL = ""
39
36LDFLAGS += "-Wl,-z,relro,-z,now" 40LDFLAGS += "-Wl,-z,relro,-z,now"
37 41
38SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" 42SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared"