diff --git a/packages/devel/binutils/package.mk b/packages/devel/binutils/package.mk index b6b6eb5642..bdd8c8f7c5 100644 --- a/packages/devel/binutils/package.mk +++ b/packages/devel/binutils/package.mk @@ -3,8 +3,8 @@ # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) PKG_NAME="binutils" -PKG_VERSION="2.42" -PKG_SHA256="f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800" +PKG_VERSION="2.43" +PKG_SHA256="b53606f443ac8f01d1d5fc9c39497f2af322d99e14cea5c0b4b124d630379365" PKG_LICENSE="GPL" PKG_SITE="https://www.gnu.org/software/binutils/" PKG_URL="https://ftp.gnu.org/gnu/binutils/${PKG_NAME}-${PKG_VERSION}.tar.xz" diff --git a/packages/devel/binutils/patches/binutils-01-warn-for-uses-of-system-directories-when-link.patch b/packages/devel/binutils/patches/binutils-01-warn-for-uses-of-system-directories-when-link.patch index 1619cef941..d562277d57 100644 --- a/packages/devel/binutils/patches/binutils-01-warn-for-uses-of-system-directories-when-link.patch +++ b/packages/devel/binutils/patches/binutils-01-warn-for-uses-of-system-directories-when-link.patch @@ -14,7 +14,7 @@ Subject: [PATCH 09/13] warn for uses of system directories when cross linking +++ b/ld/ldfile.c @@ -103,6 +103,17 @@ ldfile_add_library_path (const char *nam if (!cmdline && config.only_cmd_line_lib_dirs) - return; + return NULL; + /* skip those directories when linking */ + if ((!strncmp (name, "/lib", 4)) || @@ -24,7 +24,7 @@ Subject: [PATCH 09/13] warn for uses of system directories when cross linking + { + einfo (_("%P: warning: library search path \"%s\" is unsafe for " + "cross-compilation, ignore it\n"), name); -+ return; ++ return NULL; + } + new_dirs = (search_dirs_type *) xmalloc (sizeof (search_dirs_type));