From ef27039138d1fc341fba58474c515dec782d8f8c Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Wed, 12 May 2021 17:42:36 +0200 Subject: binutils: backport gold changes to use mallinfo2 instead of deprecated mallinfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * mallinfo got deprecacted in glibc-2.33 with: https://sourceware.org/git/?p=glibc.git;a=commit;h=e3960d1c57e57f33e0e846d615788f4ede73b945 https://sourceware.org/git/?p=glibc.git;a=commit;h=30e5069c7d4b51288d3e6f75f53a6ad2f5e71b0f * resolves this warning: oe-core$ grep mallinfo tmp-glibc/work/x86_64-linux/binutils-cross-x86_64/2.36.1-r0/temp/log.do_compile checking whether sbrk is declared... checking for mallinfo... yes ../../gold/main.cc:294:36: warning: ‘mallinfo mallinfo()’ is deprecated [-Wdeprecated-declarations] * after: oe-core$ grep mallinfo tmp-glibc/work/x86_64-linux/binutils-cross-x86_64/2.36.1-r0/temp/log.do_compile checking for struct stat.st_mtim.tv_nsec in sys/stat.h... checking for mallinfo... yes checking whether snprintf is declared... checking for mallinfo2... configure: updating cache ./config.cache the configure output is badly mixed together, but mallinfo2 support was detected OK: oe-core$ grep _mallinfo tmp-glibc/work/x86_64-linux/binutils-cross-x86_64/2.36.1-r0/git/build.x86_64-linux.x86_64-oe-linux/gold/config.log ac_cv_func_mallinfo2=yes ac_cv_func_mallinfo=yes Signed-off-by: Martin Jansa --- meta/recipes-devtools/binutils/binutils-2.36.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-devtools/binutils/binutils-2.36.inc') diff --git a/meta/recipes-devtools/binutils/binutils-2.36.inc b/meta/recipes-devtools/binutils/binutils-2.36.inc index d54e2a3457..5dd9141ea7 100644 --- a/meta/recipes-devtools/binutils/binutils-2.36.inc +++ b/meta/recipes-devtools/binutils/binutils-2.36.inc @@ -37,6 +37,9 @@ SRC_URI = "\ file://0016-Check-for-clang-before-checking-gcc-version.patch \ file://0017-Add-support-for-the-DW_FORM_strx-forms-to-the-BFD-li.patch \ file://0018-Add-DWARF-5-support-in-gold.patch \ + file://0019-Fix-gold-to-use-mallinfo2-if-available-instead-of-de.patch \ + file://0020-Fix-typo-in-previous-patch-should-use-struct-mallinf.patch \ + file://0021-Regenerate-config.in-missing-from-previous-commit.patch \ file://CVE-2021-20197.patch \ " S = "${WORKDIR}/git" -- cgit 1.2.3-korg