Linux EFI development
 help / color / mirror / Atom feed
* [PATCH] efi: fix errors in building: requires -maccumulate-outgoing-args
@ 2020-06-14 11:45 Zhu Lingshan
  2020-06-14 12:17 ` Ard Biesheuvel
  0 siblings, 1 reply; 2+ messages in thread
From: Zhu Lingshan @ 2020-06-14 11:45 UTC (permalink / raw)
  To: ardb, linux-efi; +Cc: Zhu Lingshan

when build kernel with default config, efi/libstub won't build,
complain: sorry, unimplemented: ms_abi attribute
requires -maccumulate-outgoing-args or subtarget optimization
implying it

This commit intends to add -maccumulate-outgoing-args to Makefile
cflags, make builder happy.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
---
 drivers/firmware/efi/libstub/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile
index 75daaf2..a4541b2 100644
--- a/drivers/firmware/efi/libstub/Makefile
+++ b/drivers/firmware/efi/libstub/Makefile
@@ -6,7 +6,7 @@
 # enabled, even if doing so doesn't break the build.
 #
 cflags-$(CONFIG_X86_32)		:= -march=i386
-cflags-$(CONFIG_X86_64)		:= -mcmodel=small
+cflags-$(CONFIG_X86_64)		:= -mcmodel=small -maccumulate-outgoing-args
 cflags-$(CONFIG_X86)		+= -m$(BITS) -D__KERNEL__ \
 				   -fPIC -fno-strict-aliasing -mno-red-zone \
 				   -mno-mmx -mno-sse -fshort-wchar \
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] efi: fix errors in building: requires -maccumulate-outgoing-args
  2020-06-14 11:45 [PATCH] efi: fix errors in building: requires -maccumulate-outgoing-args Zhu Lingshan
@ 2020-06-14 12:17 ` Ard Biesheuvel
  0 siblings, 0 replies; 2+ messages in thread
From: Ard Biesheuvel @ 2020-06-14 12:17 UTC (permalink / raw)
  To: Zhu Lingshan; +Cc: linux-efi

On Sun, 14 Jun 2020 at 13:49, Zhu Lingshan <lingshan.zhu@intel.com> wrote:
>
> when build kernel with default config, efi/libstub won't build,
> complain: sorry, unimplemented: ms_abi attribute
> requires -maccumulate-outgoing-args or subtarget optimization
> implying it
>
> This commit intends to add -maccumulate-outgoing-args to Makefile
> cflags, make builder happy.
>
> Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>

Thank you Zhu. You are number #4 to report this to the linux-efi
mailing list, and a fix was already suggested.

https://lore.kernel.org/linux-efi/20200605150638.1011637-1-nivedita@alum.mit.edu/

Upgrading to something more recent than GCC 4.8 could be another
workaround, if that is an option for you. The fix should hopefully be
in by -rc2


> ---
>  drivers/firmware/efi/libstub/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile
> index 75daaf2..a4541b2 100644
> --- a/drivers/firmware/efi/libstub/Makefile
> +++ b/drivers/firmware/efi/libstub/Makefile
> @@ -6,7 +6,7 @@
>  # enabled, even if doing so doesn't break the build.
>  #
>  cflags-$(CONFIG_X86_32)                := -march=i386
> -cflags-$(CONFIG_X86_64)                := -mcmodel=small
> +cflags-$(CONFIG_X86_64)                := -mcmodel=small -maccumulate-outgoing-args
>  cflags-$(CONFIG_X86)           += -m$(BITS) -D__KERNEL__ \
>                                    -fPIC -fno-strict-aliasing -mno-red-zone \
>                                    -mno-mmx -mno-sse -fshort-wchar \
> --
> 1.8.3.1
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-14 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-14 11:45 [PATCH] efi: fix errors in building: requires -maccumulate-outgoing-args Zhu Lingshan
2020-06-14 12:17 ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox