Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937381 - sys-devel/binutils-2.43: cross patch fails to apply binutils-2.40-linker-search-path.patch
Summary: sys-devel/binutils-2.43: cross patch fails to apply binutils-2.40-linker-sear...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-05 13:08 UTC by Christian Bricart
Modified: 2025-02-06 16:38 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Bricart 2024-08-05 13:08:11 UTC
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);
Comment 1 Alex Buell 2024-08-05 20:54:16 UTC
Seeing the same issue for cross-compiling targets RISCV and ARM as well.
Comment 2 Larry the Git Cow gentoo-dev 2024-08-05 22:21:24 UTC
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(-)