mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
bb3fc52010
commit
35c08bed88
|
@ -33,6 +33,10 @@ EXTRA_OECONF = "--enable-static"
|
|||
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||
ARM_INSTRUCTION_SET:armv5 = "arm"
|
||||
|
||||
# With qemuarm64 and poky-tiny:
|
||||
# ld: .libs/Gtest-trace: hidden symbol `__aarch64_cas8_acq_rel' in libgcc.a(cas_8_4.o) is referenced by DSO
|
||||
LDFLAGS_SECTION_REMOVAL = ""
|
||||
|
||||
LDFLAGS += "-Wl,-z,relro,-z,now"
|
||||
|
||||
SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared"
|
||||
|
|
Loading…
Reference in New Issue
Block a user