mirror of
https://git.yoctoproject.org/poky
synced 2026-02-21 17:09:42 +01:00
* building chromium with gold and threads triggers this issue:
[1/2] SOLINK ./libcbe.so
FAILED: libcbe.so libcbe.so.TOC
python "../../git/src/build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm" --sofile="./libcbe.so" --tocfile="./libcbe.so.TOC" --output="./libcbe.so" -- i686-oe-linux-g++ -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=chromium/84.0.4147.89-4-r41.1/recipe-sysroot -shared -Wl,-soname="libcbe.so" -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -Wl,--threads -Wl,--thread-count=4 -m32 -Wl,-O2 -Wl,--gc-sections -rdynamic --sysroot=../../recipe-sysroot -L../../recipe-sysroot/lib -L../../recipe-sysroot/usr/lib -Lchromium/84.0.4147.89-4-r41.1/recipe-sysroot -o "./libcbe.so" @"./libcbe.so.rsp"
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
* removing threads/thread-count is one possible work around, but then
the use of gold for performance makes even less sense, that's why
chromium from meta-browser uses LLD by default:
15228b0190
https://lld.llvm.org/#performance
but lets backport this as other recipes might also reproduce this
issue
(From OE-Core rev: eaf4548a58d1b926b38beab28d75f8710c8b078a)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
50 lines
2.3 KiB
PHP
50 lines
2.3 KiB
PHP
LIC_FILES_CHKSUM="\
|
|
file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
|
|
file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\
|
|
file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\
|
|
file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6\
|
|
file://gas/COPYING;md5=d32239bcb673463ab874e80d47fae504\
|
|
file://include/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
|
|
file://include/COPYING3;md5=d32239bcb673463ab874e80d47fae504\
|
|
file://libiberty/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7\
|
|
file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\
|
|
"
|
|
|
|
def binutils_branch_version(d):
|
|
pvsplit = d.getVar('PV').split('.')
|
|
return pvsplit[0] + "_" + pvsplit[1]
|
|
|
|
# When upgrading to 2.35, please make sure there is no trailing .0, so
|
|
# that upstream version check can work correctly.
|
|
PV = "2.35.1"
|
|
CVE_VERSION = "2.35.1"
|
|
BINUPV = "${@binutils_branch_version(d)}"
|
|
#BRANCH = "binutils-${BINUPV}-branch"
|
|
BRANCH ?= "binutils-2_35-branch"
|
|
|
|
UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
|
|
|
|
SRCREV ?= "7e46a74aa3713c563940960e361e08defda019c2"
|
|
BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${BRANCH};protocol=git"
|
|
SRC_URI = "\
|
|
${BINUTILS_GIT_URI} \
|
|
file://0004-configure-widen-the-regexp-for-SH-architectures.patch \
|
|
file://0005-Point-scripts-location-to-libdir.patch \
|
|
file://0006-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
|
|
file://0007-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
|
|
file://0008-warn-for-uses-of-system-directories-when-cross-linki.patch \
|
|
file://0009-Change-default-emulation-for-mips64-linux.patch \
|
|
file://0010-Add-support-for-Netlogic-XLP.patch \
|
|
file://0011-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch \
|
|
file://0012-Detect-64-bit-MIPS-targets.patch \
|
|
file://0013-Use-libtool-2.4.patch \
|
|
file://0014-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
|
|
file://0015-sync-with-OE-libtool-changes.patch \
|
|
file://0016-Check-for-clang-before-checking-gcc-version.patch \
|
|
file://0017-gas-improve-reproducibility-for-stabs-debugging-data.patch \
|
|
file://0001-aarch64-Return-an-error-on-conditional-branch-to-an-.patch \
|
|
file://CVE-2020-35448.patch \
|
|
file://0001-gold-ensure-file_counts_lock-is-initialized-before-u.patch \
|
|
"
|
|
S = "${WORKDIR}/git"
|