* [PATCH] x86: efi: fix objcopy flags for barebox.efi
@ 2026-04-29 8:07 corentin.guillevic
2026-05-07 10:41 ` Sascha Hauer
2026-10-02 10:51 ` Lucas Stach
0 siblings, 2 replies; 4+ messages in thread
From: corentin.guillevic @ 2026-04-29 8:07 UTC (permalink / raw)
To: barebox; +Cc: Corentin Guillevic
From: Corentin Guillevic <corentin.guillevic@smile.fr>
Since the 2.46 version of binutils, a stricter target checking has been added
(see [1]) meaning that the --target=efi-app-x86_64 option no longer works:
a 'file format not recognized' error occurs.
Replace the --target option, which defines both the input and output targets,
with --output-target.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5e83077d552ed6f81dbc092eb3ccf827a43de42c
Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr>
---
arch/x86/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 647d075f016..9456815fa8a 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -62,7 +62,7 @@ KBUILD_LDFLAGS := --no-undefined
OBJCOPYFLAGS_barebox.efi = \
-j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela \
- -j .reloc -j .bbenv.* -j .bblogo.* -j .barebox_imd --target=$(TARGET)
+ -j .reloc -j .bbenv.* -j .bblogo.* -j .barebox_imd --output-target=$(TARGET)
barebox.efi: $(KBUILD_BINARY) FORCE
$(call if_changed,objcopy)
--
2.51.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86: efi: fix objcopy flags for barebox.efi
2026-04-29 8:07 [PATCH] x86: efi: fix objcopy flags for barebox.efi corentin.guillevic
@ 2026-05-07 10:41 ` Sascha Hauer
2026-10-02 10:51 ` Lucas Stach
1 sibling, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2026-05-07 10:41 UTC (permalink / raw)
To: barebox, corentin.guillevic
On Wed, 29 Apr 2026 10:07:11 +0200, corentin.guillevic@smile.fr wrote:
> Since the 2.46 version of binutils, a stricter target checking has been added
> (see [1]) meaning that the --target=efi-app-x86_64 option no longer works:
> a 'file format not recognized' error occurs.
>
> Replace the --target option, which defines both the input and output targets,
> with --output-target.
>
> [...]
Applied, thanks!
[1/1] x86: efi: fix objcopy flags for barebox.efi
https://git.pengutronix.de/cgit/barebox/commit/?id=5f9dfc52ff45 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] x86: efi: fix objcopy flags for barebox.efi
2026-04-29 8:07 [PATCH] x86: efi: fix objcopy flags for barebox.efi corentin.guillevic
2026-05-07 10:41 ` Sascha Hauer
@ 2026-10-02 10:51 ` Lucas Stach
2026-10-06 8:09 ` Sascha Hauer
1 sibling, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2026-10-02 10:51 UTC (permalink / raw)
To: Sascha Hauer, barebox
Hi Sascha,
can this patch please be added to the 2026.04 stable series? Missing
this patch currently prevents a successful build of Barebox for the x86
platform in Yocto wrynose.
Regards,
Lucas
Am Mittwoch, dem 29.04.2026 um 10:07 +0200 schrieb
corentin.guillevic@smile.fr:
> From: Corentin Guillevic <corentin.guillevic@smile.fr>
>
> Since the 2.46 version of binutils, a stricter target checking has been added
> (see [1]) meaning that the --target=efi-app-x86_64 option no longer works:
> a 'file format not recognized' error occurs.
>
> Replace the --target option, which defines both the input and output targets,
> with --output-target.
>
> [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5e83077d552ed6f81dbc092eb3ccf827a43de42c
>
> Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr>
> ---
> arch/x86/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/Makefile b/arch/x86/Makefile
> index 647d075f016..9456815fa8a 100644
> --- a/arch/x86/Makefile
> +++ b/arch/x86/Makefile
> @@ -62,7 +62,7 @@ KBUILD_LDFLAGS := --no-undefined
>
> OBJCOPYFLAGS_barebox.efi = \
> -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela \
> - -j .reloc -j .bbenv.* -j .bblogo.* -j .barebox_imd --target=$(TARGET)
> + -j .reloc -j .bbenv.* -j .bblogo.* -j .barebox_imd --output-target=$(TARGET)
>
> barebox.efi: $(KBUILD_BINARY) FORCE
> $(call if_changed,objcopy)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86: efi: fix objcopy flags for barebox.efi
2026-10-02 10:51 ` Lucas Stach
@ 2026-10-06 8:09 ` Sascha Hauer
0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2026-10-06 8:09 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On 2026-10-02 12:51, Lucas Stach wrote:
> Hi Sascha,
>
> can this patch please be added to the 2026.04 stable series? Missing
> this patch currently prevents a successful build of Barebox for the x86
> platform in Yocto wrynose.
Picked for 2026.04 stable
Sascha
>
> Regards,
> Lucas
>
> Am Mittwoch, dem 29.04.2026 um 10:07 +0200 schrieb
> corentin.guillevic@smile.fr:
> > From: Corentin Guillevic <corentin.guillevic@smile.fr>
> >
> > Since the 2.46 version of binutils, a stricter target checking has been added
> > (see [1]) meaning that the --target=efi-app-x86_64 option no longer works:
> > a 'file format not recognized' error occurs.
> >
> > Replace the --target option, which defines both the input and output targets,
> > with --output-target.
> >
> > [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5e83077d552ed6f81dbc092eb3ccf827a43de42c
> >
> > Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr>
> > ---
> > arch/x86/Makefile | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/x86/Makefile b/arch/x86/Makefile
> > index 647d075f016..9456815fa8a 100644
> > --- a/arch/x86/Makefile
> > +++ b/arch/x86/Makefile
> > @@ -62,7 +62,7 @@ KBUILD_LDFLAGS := --no-undefined
> >
> > OBJCOPYFLAGS_barebox.efi = \
> > -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela \
> > - -j .reloc -j .bbenv.* -j .bblogo.* -j .barebox_imd --target=$(TARGET)
> > + -j .reloc -j .bbenv.* -j .bblogo.* -j .barebox_imd --output-target=$(TARGET)
> >
> > barebox.efi: $(KBUILD_BINARY) FORCE
> > $(call if_changed,objcopy)
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-06 8:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-29 8:07 [PATCH] x86: efi: fix objcopy flags for barebox.efi corentin.guillevic
2026-05-07 10:41 ` Sascha Hauer
2026-10-02 10:51 ` Lucas Stach
2026-10-06 8:09 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox