grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] A workaround for clang problem assembling startup_raw.S


From: Daniel Kiper
Subject: Re: [PATCH] A workaround for clang problem assembling startup_raw.S
Date: Wed, 27 Mar 2019 15:00:59 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, Mar 26, 2019 at 03:11:50PM +0100, Vladimir 'phcoder' Serbinenko wrote:
> >From 5f64575630d30cba24f3c57a865d8f4b094690b7 Mon Sep 17 00:00:00 2001
> From: Vladimir Serbinenko <address@hidden>
> Date: Tue, 26 Mar 2019 14:56:59 +0100
> Subject: [PATCH] A workaround for clang problem assembling startup_raw.S
>
> Signed-off-by: Vladimir Serbinenko <address@hidden>
> ---
>  grub-core/boot/i386/pc/startup_raw.S | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/grub-core/boot/i386/pc/startup_raw.S
> b/grub-core/boot/i386/pc/startup_raw.S
> index 8bce7985c..28974821e 100644
> --- a/grub-core/boot/i386/pc/startup_raw.S
> +++ b/grub-core/boot/i386/pc/startup_raw.S
> @@ -118,7 +118,16 @@ LOCAL (codestart):
>
>  #include "../../../kern/i386/realmode.S"
>
> +/*
> + *
> + * This is a workaround for clang adding a section containing only .addrsig
> + * Since clang itself is unable to assemble this pseudo-opcode, just replace
> + * it with .text

Is .addrsig an empty section? If it is then OK. If no then is there any
chance to force clang to drop it instead of merging it with .text section?

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]