]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
A workaround for clang problem assembling startup_raw.S
authorVladimir Serbinenko <phcoder@google.com>
Tue, 26 Mar 2019 13:56:59 +0000 (14:56 +0100)
committerVladimir Serbinenko <phcoder@google.com>
Mon, 8 Apr 2019 05:22:10 +0000 (15:22 +1000)
Signed-off-by: Vladimir Serbinenko <phcoder@google.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/boot/i386/pc/startup_raw.S

index 8bce7985c33b65e3d6e23b818b1f8c91708d8a1b..28974821e696133aa64e6840a99031513deaa222 100644 (file)
@@ -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
+ *
+ */
+#define addrsig text
 #include <rs_decoder.h>
+#undef addrsig
 
        .text