since binutils-2.43 the expected line of the patch changed in upstream sources: expected by patch (around line 1165) in ld/ldelf.c: > char *filename; > > if (search->cmdline) > continue; > filename = (char *) xmalloc (strlen (search->name) + len + 2); upstream source: > char *filename; > > if (search->source != search_dir_linker_script) > continue; > filename = (char *) xmalloc (strlen (search->name) + len + 2);
Seeing the same issue for cross-compiling targets RISCV and ARM as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f9b32f028a31e544134077f5a3b6bd3d8c4230c commit 5f9b32f028a31e544134077f5a3b6bd3d8c4230c Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2024-08-05 22:20:23 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2024-08-05 22:20:23 +0000 sys-devel/binutils: Rebase cross/prefix linker patches for 2.43 Closes: https://bugs.gentoo.org/937381 Signed-off-by: James Le Cuirot <chewi@gentoo.org> sys-devel/binutils/binutils-2.43.ebuild | 4 +- sys-devel/binutils/binutils-9999.ebuild | 4 +- .../files/binutils-2.43-linker-prefix.patch | 53 ++++++++++++++++++++++ .../files/binutils-2.43-linker-search-path.patch | 43 ++++++++++++++++++ 4 files changed, 100 insertions(+), 4 deletions(-)