Skip to contentSkip to conversation

x86: fix build with old gas

PATCH In review Jan Beulich 2 participants 2 messages Jun 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix build with old gas

.string8 is only supported by gas 2.19 and newer.

xen/include/asm-x86/bug.h +2 -2
@@ -79,7 +79,7 @@ extern const struct bug_frame __start_bu
     .L\@ud: ud2a
 
     .pushsection .rodata.str1, "aMS", @progbits, 1
-         .L\@s1: .string8 "\file_str"
+         .L\@s1: .asciz "\file_str"
     .popsection
 
     .pushsection .bug_frames.\type, "a", @progbits
@@ -91,7 +91,7 @@ extern const struct bug_frame __start_bu
 
         .if \second_frame
             .pushsection .rodata.str1, "aMS", @progbits, 1
-                .L\@s2: .string8 "\msg"
+                .L\@s2: .asciz "\msg"
             .popsection
             .long 0, (.L\@s2 - .L\@bf)
         .endif

x86: fix build with old gas

.string8 is only supported by gas 2.19 and newer.

xen/include/asm-x86/bug.h +2 -2
@@ -79,7 +79,7 @@ extern const struct bug_frame __start_bu
     .L\@ud: ud2a
 
     .pushsection .rodata.str1, "aMS", @progbits, 1
-         .L\@s1: .string8 "\file_str"
+         .L\@s1: .asciz "\file_str"
     .popsection
 
     .pushsection .bug_frames.\type, "a", @progbits
@@ -91,7 +91,7 @@ extern const struct bug_frame __start_bu
 
         .if \second_frame
             .pushsection .rodata.str1, "aMS", @progbits, 1
-                .L\@s2: .string8 "\msg"
+                .L\@s2: .asciz "\msg"
             .popsection
             .long 0, (.L\@s2 - .L\@bf)
         .endif

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jan Beulich

.string8 is only supported by gas 2.19 and newer.

Quoted 24 lines
xen/include/asm-x86/bug.h +2 -2
@@ -79,7 +79,7 @@ extern const struct bug_frame __start_bu
     .L\@ud: ud2a
 
     .pushsection .rodata.str1, "aMS", @progbits, 1
-         .L\@s1: .string8 "\file_str"
+         .L\@s1: .asciz "\file_str"
     .popsection
 
     .pushsection .bug_frames.\type, "a", @progbits
@@ -91,7 +91,7 @@ extern const struct bug_frame __start_bu
 
         .if \second_frame
             .pushsection .rodata.str1, "aMS", @progbits, 1
-                .L\@s2: .string8 "\msg"
+                .L\@s2: .asciz "\msg"
             .popsection
             .long 0, (.L\@s2 - .L\@bf)
         .endif