mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
binutils: Upgrade to 2.41 release
Fix build on 32bit arches with 64bit off_t defaults Detailed changes [1] [1] https://sourceware.org/pipermail/binutils/2023-July/128719.html (From OE-Core rev: c19fd803220f5b701dee077f7e7bfbb5ba2f22e3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
|
||||
|
||||
GCCVERSION ?= "13.%"
|
||||
SDKGCCVERSION ?= "${GCCVERSION}"
|
||||
BINUVERSION ?= "2.40%"
|
||||
BINUVERSION ?= "2.41%"
|
||||
GDBVERSION ?= "13.%"
|
||||
GLIBCVERSION ?= "2.37"
|
||||
LINUXLIBCVERSION ?= "6.4%"
|
||||
|
||||
@@ -10,15 +10,15 @@ LIC_FILES_CHKSUM="\
|
||||
file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\
|
||||
"
|
||||
|
||||
# When upgrading to 2.41, please make sure there is no trailing .0, so
|
||||
# When upgrading to 2.42, please make sure there is no trailing .0, so
|
||||
# that upstream version check can work correctly.
|
||||
PV = "2.40"
|
||||
CVE_VERSION = "2.40"
|
||||
SRCBRANCH ?= "binutils-2_40-branch"
|
||||
PV = "2.41"
|
||||
CVE_VERSION = "2.41"
|
||||
SRCBRANCH ?= "binutils-2_41-branch"
|
||||
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
|
||||
|
||||
SRCREV ?= "4671be001eb5a899ecac3e2686a92934000f8262"
|
||||
SRCREV ?= "fd3cc73ee4a84df3ace3c0e470250a957e7d3468"
|
||||
BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=https"
|
||||
SRC_URI = "\
|
||||
${BINUTILS_GIT_URI} \
|
||||
@@ -32,9 +32,7 @@ SRC_URI = "\
|
||||
file://0011-Check-for-clang-before-checking-gcc-version.patch \
|
||||
file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
|
||||
file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
|
||||
file://0015-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
|
||||
file://0016-CVE-2023-25586.patch \
|
||||
file://fix-time64.patch \
|
||||
file://0001-Fix-an-illegal-memory-access-when-an-accessing-a-zer.patch \
|
||||
file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
|
||||
file://0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -1,43 +0,0 @@
|
||||
From c22d38baefc5a7a1e1f5cdc9dbb556b1f0ec5c57 Mon Sep 17 00:00:00 2001
|
||||
From: Nick Clifton <nickc@redhat.com>
|
||||
Date: Thu, 30 Mar 2023 10:10:09 +0100
|
||||
Subject: [PATCH] Fix an illegal memory access when an accessing a
|
||||
zer0-lengthverdef table.
|
||||
|
||||
PR 30285
|
||||
* elf.c (_bfd_elf_slurp_version_tables): Fail if no version definitions are allocated.
|
||||
|
||||
CVE: CVE-2023-1972
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
---
|
||||
bfd/ChangeLog | 6 ++++++
|
||||
bfd/elf.c | 5 +++++
|
||||
2 files changed, 11 insertions(+)
|
||||
|
||||
diff --git a/bfd/elf.c b/bfd/elf.c
|
||||
index 027d0143735..185028cbd97 100644
|
||||
--- a/bfd/elf.c
|
||||
+++ b/bfd/elf.c
|
||||
@@ -9030,6 +9030,9 @@ _bfd_elf_slurp_version_tables (bfd *abfd, bool default_imported_symver)
|
||||
bfd_set_error (bfd_error_file_too_big);
|
||||
goto error_return_verdef;
|
||||
}
|
||||
+
|
||||
+ if (amt == 0)
|
||||
+ goto error_return_verdef;
|
||||
elf_tdata (abfd)->verdef = (Elf_Internal_Verdef *) bfd_zalloc (abfd, amt);
|
||||
if (elf_tdata (abfd)->verdef == NULL)
|
||||
goto error_return_verdef;
|
||||
@@ -9133,6 +9136,8 @@ _bfd_elf_slurp_version_tables (bfd *abfd, bool default_imported_symver)
|
||||
bfd_set_error (bfd_error_file_too_big);
|
||||
goto error_return;
|
||||
}
|
||||
+ if (amt == 0)
|
||||
+ goto error_return;
|
||||
elf_tdata (abfd)->verdef = (Elf_Internal_Verdef *) bfd_zalloc (abfd, amt);
|
||||
if (elf_tdata (abfd)->verdef == NULL)
|
||||
goto error_return;
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 4bdab425bdd7dc52c95bfd62e035c1b9abe9595e Mon Sep 17 00:00:00 2001
|
||||
From 95e23fba624c90d0e62c1adaf2bcc4f3cd3175c0 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 2 Mar 2015 01:58:54 +0000
|
||||
Subject: [PATCH] binutils-crosssdk: Generate relocatable SDKs
|
||||
@@ -21,10 +21,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
3 files changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/gold/layout.cc b/gold/layout.cc
|
||||
index 899d4af0707..7c31b1bef6e 100644
|
||||
index b94855f8662..51f2d74d79d 100644
|
||||
--- a/gold/layout.cc
|
||||
+++ b/gold/layout.cc
|
||||
@@ -5083,7 +5083,7 @@ Layout::create_interp(const Target* target)
|
||||
@@ -5102,7 +5102,7 @@ Layout::create_interp(const Target* target)
|
||||
gold_assert(interp != NULL);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ index 382bd07ffe2..9fbd0c4cb8a 100755
|
||||
DATA_ALIGNMENT=${DATA_ALIGNMENT_}
|
||||
RELOCATING=" "
|
||||
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
|
||||
index 5d3b0d31b1b..2163909cd56 100644
|
||||
index 1e3c5aa8504..b8d1977b3f0 100644
|
||||
--- a/ld/scripttempl/elf.sc
|
||||
+++ b/ld/scripttempl/elf.sc
|
||||
@@ -148,8 +148,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From c79005d4d9991593557766ad569f48c26482399f Mon Sep 17 00:00:00 2001
|
||||
From 2b3017e7dab4d929d3ab664c5e6f94226b0a6d31 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 6 Mar 2017 23:37:05 -0800
|
||||
Subject: [PATCH] binutils-cross: Do not generate linker script directories
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 70da8b91026c5381d430194910fc15e3b6c5ec7f Mon Sep 17 00:00:00 2001
|
||||
From c00ead7264dc1335cb43222cb742b95614666be8 Mon Sep 17 00:00:00 2001
|
||||
From: Richard Purdie <richard.purdie@linuxfoundation.org>
|
||||
Date: Wed, 19 Feb 2020 09:51:16 -0800
|
||||
Subject: [PATCH] binutils-nativesdk: Search for alternative ld.so.conf in SDK
|
||||
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
5 files changed, 7 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/ld/Makefile.am b/ld/Makefile.am
|
||||
index b3195b4be68..fc6460317a7 100644
|
||||
index c3adbb0ccad..ce0f7e7f85d 100644
|
||||
--- a/ld/Makefile.am
|
||||
+++ b/ld/Makefile.am
|
||||
@@ -42,7 +42,8 @@ ZLIBINC = @zlibinc@
|
||||
@@ -43,7 +43,7 @@ index b3195b4be68..fc6460317a7 100644
|
||||
NO_WERROR = @NO_WERROR@
|
||||
AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
|
||||
diff --git a/ld/Makefile.in b/ld/Makefile.in
|
||||
index fe422569228..4a4c851b44a 100644
|
||||
index d1a56026437..9d86aed12c6 100644
|
||||
--- a/ld/Makefile.in
|
||||
+++ b/ld/Makefile.in
|
||||
@@ -566,7 +566,8 @@ ZLIB = @zlibdir@ -lz
|
||||
@@ -57,7 +57,7 @@ index fe422569228..4a4c851b44a 100644
|
||||
AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
|
||||
|
||||
diff --git a/ld/ldelf.c b/ld/ldelf.c
|
||||
index eff6693e052..95787012b89 100644
|
||||
index f9a6819366f..1519f8ac4e5 100644
|
||||
--- a/ld/ldelf.c
|
||||
+++ b/ld/ldelf.c
|
||||
@@ -936,7 +936,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force,
|
||||
@@ -65,15 +65,15 @@ index eff6693e052..95787012b89 100644
|
||||
info.path = NULL;
|
||||
info.len = info.alloc = 0;
|
||||
- tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf",
|
||||
+ tmppath = concat (ld_sysconfdir, "/etc/ld.so.conf",
|
||||
+ tmppath = concat (ld_sysconfdir, "/ld.so.conf",
|
||||
(const char *) NULL);
|
||||
if (!ldelf_parse_ld_so_conf (&info, tmppath))
|
||||
{
|
||||
diff --git a/ld/ldmain.c b/ld/ldmain.c
|
||||
index 9290a189b0d..ceaca2d85d0 100644
|
||||
index 06ac2c64fa8..5c38e8cd313 100644
|
||||
--- a/ld/ldmain.c
|
||||
+++ b/ld/ldmain.c
|
||||
@@ -70,6 +70,7 @@ char *program_name;
|
||||
@@ -69,6 +69,7 @@ char *program_name;
|
||||
|
||||
/* The prefix for system library directories. */
|
||||
const char *ld_sysroot;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From fa477bb947fa17543f4550bc0e7e715c8355649c Mon Sep 17 00:00:00 2001
|
||||
From d2d1281b0b76f96c64a2043772c52c85f58994d5 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 2 Mar 2015 01:09:58 +0000
|
||||
Subject: [PATCH] Point scripts location to libdir
|
||||
@@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/ld/Makefile.am b/ld/Makefile.am
|
||||
index fc6460317a7..1b875904b8d 100644
|
||||
index ce0f7e7f85d..2e36ab4efc4 100644
|
||||
--- a/ld/Makefile.am
|
||||
+++ b/ld/Makefile.am
|
||||
@@ -51,7 +51,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
|
||||
@@ -25,7 +25,7 @@ index fc6460317a7..1b875904b8d 100644
|
||||
EMUL = @EMUL@
|
||||
EMULATION_OFILES = @EMULATION_OFILES@
|
||||
diff --git a/ld/Makefile.in b/ld/Makefile.in
|
||||
index 4a4c851b44a..08dcd7b75fc 100644
|
||||
index 9d86aed12c6..c21c554e432 100644
|
||||
--- a/ld/Makefile.in
|
||||
+++ b/ld/Makefile.in
|
||||
@@ -574,7 +574,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 7912f5a918e612950feb04d845934f26160e85da Mon Sep 17 00:00:00 2001
|
||||
From 5564cdf1433255a00acb427fb5b0656b772b2651 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 2 Mar 2015 01:39:01 +0000
|
||||
Subject: [PATCH] don't let the distro compiler point to the wrong installation
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 725ca09ee1041f64589f26ba815ef11da687c608 Mon Sep 17 00:00:00 2001
|
||||
From 41b09c6a9d78a31db0f3c70d27c05475292bde7e Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 15 Jan 2016 06:31:09 +0000
|
||||
Subject: [PATCH] warn for uses of system directories when cross linking
|
||||
@@ -59,8 +59,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
ld/ldfile.c | 17 +++++++++++++++++
|
||||
ld/ldlex.h | 2 ++
|
||||
ld/ldmain.c | 6 ++++--
|
||||
ld/lexsup.c | 16 ++++++++++++++++
|
||||
9 files changed, 88 insertions(+), 2 deletions(-)
|
||||
ld/lexsup.c | 15 +++++++++++++++
|
||||
9 files changed, 87 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/ld/config.in b/ld/config.in
|
||||
index ad0dc6a106c..d21edaddce7 100644
|
||||
@@ -77,7 +77,7 @@ index ad0dc6a106c..d21edaddce7 100644
|
||||
#undef EXTRA_SHLIB_EXTENSION
|
||||
|
||||
diff --git a/ld/configure b/ld/configure
|
||||
index 995708089fd..6406a42c442 100755
|
||||
index 1503936432f..29896853a90 100755
|
||||
--- a/ld/configure
|
||||
+++ b/ld/configure
|
||||
@@ -839,6 +839,7 @@ with_lib_path
|
||||
@@ -139,7 +139,7 @@ index 77edac3258c..a74dac63038 100644
|
||||
dnl "install_as_default" is set to false if gold is the default linker.
|
||||
dnl "installed_linker" is the installed BFD linker name.
|
||||
diff --git a/ld/ld.h b/ld/ld.h
|
||||
index 05649ff61b8..1818c227473 100644
|
||||
index a0f8a15c7a9..e3db345f3a5 100644
|
||||
--- a/ld/ld.h
|
||||
+++ b/ld/ld.h
|
||||
@@ -163,6 +163,14 @@ typedef struct
|
||||
@@ -158,10 +158,10 @@ index 05649ff61b8..1818c227473 100644
|
||||
enum endian_enum endian;
|
||||
|
||||
diff --git a/ld/ld.texi b/ld/ld.texi
|
||||
index db3a9f09b45..77037399cb9 100644
|
||||
index aa8b1aa86eb..9bc4bc28823 100644
|
||||
--- a/ld/ld.texi
|
||||
+++ b/ld/ld.texi
|
||||
@@ -2960,6 +2960,18 @@ creation of the metadata note, if one had been enabled by an earlier
|
||||
@@ -3059,6 +3059,18 @@ creation of the metadata note, if one had been enabled by an earlier
|
||||
occurrence of the --package-metdata option.
|
||||
If the linker has been built with libjansson, then the JSON string
|
||||
will be validated.
|
||||
@@ -181,10 +181,10 @@ index db3a9f09b45..77037399cb9 100644
|
||||
|
||||
@c man end
|
||||
diff --git a/ld/ldfile.c b/ld/ldfile.c
|
||||
index b8fd4e5d8e0..1f1d8e23bc9 100644
|
||||
index df7c9cbd65e..0c965593225 100644
|
||||
--- a/ld/ldfile.c
|
||||
+++ b/ld/ldfile.c
|
||||
@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *name, bool cmdline)
|
||||
@@ -327,6 +327,23 @@ ldfile_add_library_path (const char *name, bool cmdline)
|
||||
new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
|
||||
else
|
||||
new_dirs->name = xstrdup (name);
|
||||
@@ -209,23 +209,23 @@ index b8fd4e5d8e0..1f1d8e23bc9 100644
|
||||
|
||||
/* Try to open a BFD for a lang_input_statement. */
|
||||
diff --git a/ld/ldlex.h b/ld/ldlex.h
|
||||
index 0538f0a06a1..f94a71875d8 100644
|
||||
index 87cac02141d..d1a478fb827 100644
|
||||
--- a/ld/ldlex.h
|
||||
+++ b/ld/ldlex.h
|
||||
@@ -170,6 +170,8 @@ enum option_values
|
||||
OPTION_NO_WARN_EXECSTACK,
|
||||
OPTION_WARN_RWX_SEGMENTS,
|
||||
OPTION_NO_WARN_RWX_SEGMENTS,
|
||||
@@ -147,6 +147,8 @@ enum option_values
|
||||
OPTION_PLUGIN,
|
||||
OPTION_PLUGIN_OPT,
|
||||
#endif /* BFD_SUPPORTS_PLUGINS */
|
||||
+ OPTION_NO_POISON_SYSTEM_DIRECTORIES,
|
||||
+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,
|
||||
};
|
||||
|
||||
/* The initial parser states. */
|
||||
OPTION_DEFAULT_SCRIPT,
|
||||
OPTION_PRINT_OUTPUT_FORMAT,
|
||||
OPTION_PRINT_SYSROOT,
|
||||
diff --git a/ld/ldmain.c b/ld/ldmain.c
|
||||
index ceaca2d85d0..62e7b4e5341 100644
|
||||
index 5c38e8cd313..04eed320aca 100644
|
||||
--- a/ld/ldmain.c
|
||||
+++ b/ld/ldmain.c
|
||||
@@ -322,6 +322,8 @@ main (int argc, char **argv)
|
||||
@@ -326,6 +326,8 @@ main (int argc, char **argv)
|
||||
command_line.warn_mismatch = true;
|
||||
command_line.warn_search_mismatch = true;
|
||||
command_line.check_section_addresses = -1;
|
||||
@@ -234,7 +234,7 @@ index ceaca2d85d0..62e7b4e5341 100644
|
||||
|
||||
/* We initialize DEMANGLING based on the environment variable
|
||||
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
|
||||
@@ -1454,7 +1456,7 @@ undefined_symbol (struct bfd_link_info *info,
|
||||
@@ -1458,7 +1460,7 @@ undefined_symbol (struct bfd_link_info *info,
|
||||
argv[1] = "undefined-symbol";
|
||||
argv[2] = (char *) name;
|
||||
argv[3] = NULL;
|
||||
@@ -243,7 +243,7 @@ index ceaca2d85d0..62e7b4e5341 100644
|
||||
if (verbose)
|
||||
einfo (_("%P: About to run error handling script '%s' with arguments: '%s' '%s'\n"),
|
||||
argv[0], argv[1], argv[2]);
|
||||
@@ -1475,7 +1477,7 @@ undefined_symbol (struct bfd_link_info *info,
|
||||
@@ -1479,7 +1481,7 @@ undefined_symbol (struct bfd_link_info *info,
|
||||
carry on to issue the normal error message. */
|
||||
}
|
||||
#endif /* SUPPORT_ERROR_HANDLING_SCRIPT */
|
||||
@@ -253,10 +253,10 @@ index ceaca2d85d0..62e7b4e5341 100644
|
||||
{
|
||||
if (error_count < MAX_ERRORS_IN_A_ROW)
|
||||
diff --git a/ld/lexsup.c b/ld/lexsup.c
|
||||
index a1c6140100d..d47ba4f977d 100644
|
||||
index fe8722313fe..1df7af3ccaa 100644
|
||||
--- a/ld/lexsup.c
|
||||
+++ b/ld/lexsup.c
|
||||
@@ -613,6 +613,14 @@ static const struct ld_option ld_options[] =
|
||||
@@ -629,6 +629,14 @@ static const struct ld_option ld_options[] =
|
||||
" <method> is: share-unconflicted (default),\n"
|
||||
" share-duplicated"),
|
||||
TWO_DASHES },
|
||||
@@ -271,18 +271,17 @@ index a1c6140100d..d47ba4f977d 100644
|
||||
};
|
||||
|
||||
#define OPTION_COUNT ARRAY_SIZE (ld_options)
|
||||
@@ -1737,6 +1745,14 @@ parse_args (unsigned argc, char **argv)
|
||||
config.print_map_discarded = true;
|
||||
break;
|
||||
@@ -1787,6 +1795,13 @@ parse_args (unsigned argc, char **argv)
|
||||
|
||||
case OPTION_PRINT_MAP_LOCALS:
|
||||
config.print_map_locals = true;
|
||||
+
|
||||
+ case OPTION_NO_POISON_SYSTEM_DIRECTORIES:
|
||||
+ command_line.poison_system_directories = false;
|
||||
+ break;
|
||||
+
|
||||
+ case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:
|
||||
+ command_line.error_poison_system_directories = true;
|
||||
+ break;
|
||||
+
|
||||
case OPTION_DEPENDENCY_FILE:
|
||||
config.dependency_file = optarg;
|
||||
break;
|
||||
|
||||
case OPTION_DEPENDENCY_FILE:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 4e9d4ace8a340399aeaa8332e2cfbfcc7d2d14d7 Mon Sep 17 00:00:00 2001
|
||||
From 7f04e82ac2ded9a7f68dba9fabf1251d680bd0b9 Mon Sep 17 00:00:00 2001
|
||||
From: Zhenhua Luo <zhenhua.luo@nxp.com>
|
||||
Date: Sat, 11 Jun 2016 22:08:29 -0500
|
||||
Subject: [PATCH] fix the incorrect assembling for ppc wait mnemonic
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
From ff2754e302d06df51f8dd8ef877afb65eb30fcab Mon Sep 17 00:00:00 2001
|
||||
From 73d1af65ccfed87662342274d9ec33900786beb3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 2 Mar 2015 01:42:38 +0000
|
||||
Subject: [PATCH] Fix rpath in libtool when sysroot is enabled
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 039b4afd7d3b5a599aebee97410809276a622ccd Mon Sep 17 00:00:00 2001
|
||||
From da9dc36e90c6cf7d3d3bf6f4e337261a93d63428 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@intel.com>
|
||||
Date: Mon, 6 Mar 2017 23:33:27 -0800
|
||||
Subject: [PATCH] sync with OE libtool changes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 4eb24605fb2012c0f02883d1f560d5d852c0705e Mon Sep 17 00:00:00 2001
|
||||
From f6105e5202180627e9690884d483fd5b7dc28652 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 15 Apr 2020 14:17:20 -0700
|
||||
Subject: [PATCH] Check for clang before checking gcc version
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 9613e47bfdea18d2764eec130676e3e0b40c676f Mon Sep 17 00:00:00 2001
|
||||
From 13cbec5bc5c75dd4c3e1d5f3ca80e5b64f7116d1 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 10 Mar 2022 21:21:33 -0800
|
||||
Subject: [PATCH] Only generate an RPATH entry if LD_RUN_PATH is not empty
|
||||
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/ld/ldelf.c b/ld/ldelf.c
|
||||
index 95787012b89..bc29909386f 100644
|
||||
index 1519f8ac4e5..2a7c76dc29c 100644
|
||||
--- a/ld/ldelf.c
|
||||
+++ b/ld/ldelf.c
|
||||
@@ -1127,6 +1127,9 @@ ldelf_handle_dt_needed (struct elf_link_hash_table *htab,
|
||||
@@ -27,7 +27,7 @@ index 95787012b89..bc29909386f 100644
|
||||
if (path
|
||||
&& ldelf_search_needed (path, &n, force,
|
||||
is_linux, elfsize))
|
||||
@@ -1801,6 +1804,8 @@ ldelf_before_allocation (char *audit, char *depaudit,
|
||||
@@ -1802,6 +1805,8 @@ ldelf_before_allocation (char *audit, char *depaudit,
|
||||
rpath = command_line.rpath;
|
||||
if (rpath == NULL)
|
||||
rpath = (const char *) getenv ("LD_RUN_PATH");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 8af01d85c4e5a5558d770291b7df86acfd59827c Mon Sep 17 00:00:00 2001
|
||||
From 9d451ca9ca6bf34b43a089033565ae7570db2065 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 15 Jan 2023 00:16:25 -0800
|
||||
Subject: [PATCH] Define alignof using _Alignof when using C11 or newer
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 9599d7d48913fca4c2bf0d0012f9655353ca6f6c Mon Sep 17 00:00:00 2001
|
||||
From f0c39effd46d4dec0813276b1903d6deddcd82dc Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 18 Jan 2023 19:35:07 -0800
|
||||
Subject: [PATCH] Remove duplicate pe-dll.o entry deom targ_extra_ofiles
|
||||
@@ -14,14 +14,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Cc: Jedidiah Thompson <wej22007@outlook.com>
|
||||
Cc: Zac Walker <zac.walker@linaro.org>
|
||||
---
|
||||
ld/configure.tgt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
ld/configure.tgt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ld/configure.tgt b/ld/configure.tgt
|
||||
index de04a44b812..f80c84ab13c 100644
|
||||
index c62b9581d9b..e78644d04e2 100644
|
||||
--- a/ld/configure.tgt
|
||||
+++ b/ld/configure.tgt
|
||||
@@ -1056,7 +1056,7 @@ x86_64-*-cygwin) targ_emul=i386pep ;
|
||||
@@ -1055,7 +1055,7 @@ x86_64-*-cygwin) targ_emul=i386pep ;
|
||||
;;
|
||||
x86_64-*-mingw*) targ_emul=i386pep ;
|
||||
targ_extra_emuls=i386pe
|
||||
@@ -0,0 +1,55 @@
|
||||
From 15936ae7cdfd6814654eff367b5cfb2565ea6af8 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 31 Jul 2023 15:23:38 -0700
|
||||
Subject: [PATCH] gprofng: Fix build with 64bit file offset on 32bit machines
|
||||
|
||||
gprofng/ChangeLog
|
||||
2023-07-31 Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
* libcollector/iotrace.c: Define open64, fgetpos64, and fsetpos64
|
||||
only when __USE_LARGEFILE64 and __USE_FILE_OFFSET64 are not
|
||||
defined.
|
||||
|
||||
Upstream-Status: Submitted [https://sourceware.org/pipermail/binutils/2023-July/128741.html]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
gprofng/libcollector/iotrace.c | 9 ++++++---
|
||||
1 file changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/gprofng/libcollector/iotrace.c b/gprofng/libcollector/iotrace.c
|
||||
index c0ea7497b09..81c844048d9 100644
|
||||
--- a/gprofng/libcollector/iotrace.c
|
||||
+++ b/gprofng/libcollector/iotrace.c
|
||||
@@ -1030,8 +1030,9 @@ gprofng_open64 (int(real_open64) (const char *, int, ...),
|
||||
}
|
||||
|
||||
DCL_FUNC_VER (DCL_OPEN64, open64_2_2, open64@GLIBC_2.2)
|
||||
+#if !defined(__USE_LARGEFILE64)
|
||||
DCL_OPEN64 (open64)
|
||||
-
|
||||
+#endif
|
||||
|
||||
#define F_ERROR_ARG 0
|
||||
#define F_INT_ARG 1
|
||||
@@ -2989,8 +2990,9 @@ DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_17, fgetpos64@GLIBC_2.17)
|
||||
DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_2_5, fgetpos64@GLIBC_2.2.5)
|
||||
DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_2, fgetpos64@GLIBC_2.2)
|
||||
DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_1, fgetpos64@GLIBC_2.1)
|
||||
+#if !defined(__USE_LARGEFILE64)
|
||||
DCL_FGETPOS64 (fgetpos64)
|
||||
-
|
||||
+#endif
|
||||
/*------------------------------------------------------------- fsetpos */
|
||||
static int
|
||||
gprofng_fsetpos (int(real_fsetpos) (FILE *, const fpos_t *),
|
||||
@@ -3087,8 +3089,9 @@ DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_17, fsetpos64@GLIBC_2.17)
|
||||
DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_2_5, fsetpos64@GLIBC_2.2.5)
|
||||
DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_2, fsetpos64@GLIBC_2.2)
|
||||
DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_1, fsetpos64@GLIBC_2.1)
|
||||
+#if !defined(__USE_LARGEFILE64)
|
||||
DCL_FSETPOS64 (fsetpos64)
|
||||
-
|
||||
+#endif
|
||||
/*------------------------------------------------------------- fsync */
|
||||
int
|
||||
fsync (int fildes)
|
||||
@@ -1,34 +0,0 @@
|
||||
From 5830876a0cca17bef3b2d54908928e72cca53502 Mon Sep 17 00:00:00 2001
|
||||
From: Alan Modra <amodra@gmail.com>
|
||||
Date: Tue, 6 Dec 2022 08:37:52 +1030
|
||||
Subject: [PATCH] PR29855, ch_type in bfd_init_section_decompress_status can be
|
||||
uninitialized
|
||||
|
||||
PR 29855
|
||||
* compress.c (bfd_init_section_decompress_status): Set ch_type
|
||||
to zero for zlib-gnu case.
|
||||
|
||||
Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5830876a0cca17bef3b2d54908928e72cca53502]
|
||||
|
||||
CVE: CVE-2023-25586
|
||||
|
||||
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
|
||||
---
|
||||
bfd/compress.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/bfd/compress.c b/bfd/compress.c
|
||||
index 3d8c1d769f1..6b083468ca8 100644
|
||||
--- a/bfd/compress.c
|
||||
+++ b/bfd/compress.c
|
||||
@@ -1012,7 +1012,7 @@ bfd_init_section_decompress_status (bfd *abfd, sec_ptr sec)
|
||||
return false;
|
||||
}
|
||||
uncompressed_size = bfd_getb64 (header + 4);
|
||||
- ch_type = ch_none;
|
||||
+ ch_type = 0;
|
||||
}
|
||||
else if (!bfd_check_compression_header (abfd, header, sec,
|
||||
&ch_type,
|
||||
--
|
||||
2.31.1
|
||||
@@ -1,94 +0,0 @@
|
||||
From f6f19a39ecfe962cb8a05522c27f513308687a74 Mon Sep 17 00:00:00 2001
|
||||
From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
|
||||
Date: Thu, 16 Feb 2023 19:00:47 -0800
|
||||
Subject: [PATCH] gprofng: PR30036 Build failure on aarch64 w/ glibc: symbol
|
||||
`pwrite64' is already defined
|
||||
|
||||
gprofng/ChangeLog
|
||||
2023-02-16 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
|
||||
|
||||
PR gprofng/30036
|
||||
* libcollector/iotrace.c: Define creat64 and pwrite64 only when
|
||||
__USE_LARGEFILE64 and __USE_FILE_OFFSET64 are not defined.
|
||||
* libcollector/mmaptrace.c: Likewise for mmap64.
|
||||
|
||||
Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=f6f19a39ecfe962cb8a05522c27f513308687a74]
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
---
|
||||
gprofng/libcollector/iotrace.c | 15 ++++++++-------
|
||||
gprofng/libcollector/mmaptrace.c | 2 +-
|
||||
2 files changed, 9 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/gprofng/libcollector/iotrace.c b/gprofng/libcollector/iotrace.c
|
||||
index af90cc31f1a..d8439b02b3a 100644
|
||||
--- a/gprofng/libcollector/iotrace.c
|
||||
+++ b/gprofng/libcollector/iotrace.c
|
||||
@@ -1441,7 +1441,7 @@ creat (const char *path, mode_t mode)
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------- creat64 */
|
||||
-#if WSIZE(32)
|
||||
+#if WSIZE(32) && !defined(__USE_LARGEFILE64)
|
||||
int
|
||||
creat64 (const char *path, mode_t mode)
|
||||
{
|
||||
@@ -2476,7 +2476,7 @@ __collector_pwrite_2_1 (int fildes, const void *buf, size_t nbyte, off_t offset)
|
||||
return ret;
|
||||
}
|
||||
|
||||
-#else
|
||||
+#endif
|
||||
ssize_t
|
||||
pwrite (int fildes, const void *buf, size_t nbyte, off_t offset)
|
||||
{
|
||||
@@ -2497,11 +2497,10 @@ pwrite (int fildes, const void *buf, size_t nbyte, off_t offset)
|
||||
POP_REENTRANCE (guard);
|
||||
return ret;
|
||||
}
|
||||
-#endif
|
||||
|
||||
/*------------------------------------------------------------- pwrite64 */
|
||||
-#if WSIZE(32)
|
||||
-#if !defined(__MUSL_LIBC) && ARCH(Intel)
|
||||
+#if WSIZE(32) && ARCH(Intel)
|
||||
+#if !defined(__MUSL_LIBC)
|
||||
// map interposed symbol versions
|
||||
|
||||
SYMVER_ATTRIBUTE (__collector_pwrite64_2_2, pwrite64@GLIBC_2.2)
|
||||
@@ -2547,8 +2546,9 @@ __collector_pwrite64_2_1 (int fildes, const void *buf, size_t nbyte, off64_t off
|
||||
POP_REENTRANCE (guard);
|
||||
return ret;
|
||||
}
|
||||
+#endif
|
||||
|
||||
-#else
|
||||
+#if !defined(__USE_FILE_OFFSET64)
|
||||
ssize_t
|
||||
pwrite64 (int fildes, const void *buf, size_t nbyte, off64_t offset)
|
||||
{
|
||||
@@ -2570,7 +2570,8 @@ pwrite64 (int fildes, const void *buf, size_t nbyte, off64_t offset)
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
-#endif /* SIZE(32) */
|
||||
+
|
||||
+#endif /* SIZE(32) && ARCH(Intel) */
|
||||
|
||||
/*------------------------------------------------------------- fgets */
|
||||
char*
|
||||
diff --git a/gprofng/libcollector/mmaptrace.c b/gprofng/libcollector/mmaptrace.c
|
||||
index 61613c21560..221b4e2d176 100644
|
||||
--- a/gprofng/libcollector/mmaptrace.c
|
||||
+++ b/gprofng/libcollector/mmaptrace.c
|
||||
@@ -1494,7 +1494,7 @@ mmap (void *start, size_t length, int prot, int flags, int fd, off_t offset)
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------- mmap64 */
|
||||
-#if WSIZE(32) /* mmap64 only defined for non-64-bit */
|
||||
+#if WSIZE(32) && !defined(__USE_FILE_OFFSET64)
|
||||
|
||||
void *
|
||||
mmap64 (void *start, size_t length, int prot, int flags, int fd, off64_t offset)
|
||||
--
|
||||
2.31.1
|
||||
|
||||
Reference in New Issue
Block a user