summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-2.42.inc
diff options
context:
space:
mode:
authorJiaying Song <jiaying.song.cn@windriver.com>2025-02-05 16:06:35 +0800
committerSteve Sakoman <steve@sakoman.com>2025-02-12 06:25:37 -0800
commit6d1fef08e1410eaad6ed57e480647550dbda1e3f (patch)
treec0f5736f56a2e347713dd050c1af0424f112e042 /meta/recipes-devtools/binutils/binutils-2.42.inc
parente723021fbcb710945931ed537e5d3a8bfecb2f5a (diff)
downloadpoky-6d1fef08e1410eaad6ed57e480647550dbda1e3f.tar.gz
binutils: File name too long causing failure to open temporary head file in dlltool
During the execution of the command: i686-w64-mingw32-dlltool --input-def $def_filepath --output-delaylib $filepath --dllname qemu.exe An error occurred: i686-w64-mingw32-dlltool: failed to open temporary head file: ..._w64_mingw32_nativesdk_qemu_8_2_2_build_plugins_libqemu_plugin_api_a_h.s Due to the path length exceeding the Linux system's file name length limit (NAME_MAX=255), the temporary file name generated by the i686-w64-mingw32-dlltool command becomes too long to open. To address this, a new temporary file name prefix is generated using tmp_prefix = prefix_encode ("d", getpid()), ensuring that the file name does not exceed the system's length limit. Allow for "snnnnn.o" suffix when testing against NAME_MAX, and tidy TMP_STUB handling by overwriting a prior nnnnn.o string rather than copying the entire name. (From OE-Core rev: 617df4ee1d6523ded43f156af8206dfca2c0c8ee) Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.42.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.42.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.42.inc b/meta/recipes-devtools/binutils/binutils-2.42.inc
index 3784d26f48..8bccf8c56a 100644
--- a/meta/recipes-devtools/binutils/binutils-2.42.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.42.inc
@@ -37,5 +37,6 @@ SRC_URI = "\
37 file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ 37 file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
38 file://0015-gprofng-change-use-of-bignum-to-bigint.patch \ 38 file://0015-gprofng-change-use-of-bignum-to-bigint.patch \
39 file://0016-CVE-2024-53589.patch \ 39 file://0016-CVE-2024-53589.patch \
40 file://0017-dlltool-file-name-too-long.patch \
40" 41"
41S = "${WORKDIR}/git" 42S = "${WORKDIR}/git"