Use more standard .asciz instead of .string
PATCH 1/18 Use more standard .asciz instead of .string
Hello. Here begins series of patches to make grub2 compile with apple's toolchain. It's actually just a split of previous patch. As there were no opposition to previous patch I will commit this series soon if nobody opposes
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
boot/i386/pc/boot.S +6 -7
@@ -390,11 +390,11 @@ general_error: int $0x18 stop: jmp stop -notification_string: .asciz "GRUB " -geometry_error_string: .asciz "Geom" -hd_probe_error_string: .asciz "Hard Disk" -read_error_string: .asciz "Read" -general_error_string: .asciz " Error" +notification_string: .string "GRUB " +geometry_error_string: .string "Geom" +hd_probe_error_string: .string "Hard Disk" +read_error_string: .string "Read" +general_error_string: .string " Error" /* * message: write the string pointed to by %si
@@ -464,8 +464,7 @@ probe_loop: MSG(fd_probe_error_string) jmp general_error -/* "Floppy" */ -fd_probe_error_string: .asciz "Floppy" +fd_probe_error_string: .string "Floppy" 1: /* perform read */
boot/i386/pc/diskboot.S +6 -6
@@ -326,14 +326,14 @@ general_error: /* go here when you need to stop the machine hard after an error condition */ stop: jmp stop -notification_string: .asciz "loading" +notification_string: .string "loading" -notification_step: .asciz "." -notification_done: .asciz "\r\n" +notification_step: .string "." +notification_done: .string "\r\n" -geometry_error_string: .asciz "Geom" -read_error_string: .asciz "Read" -general_error_string: .asciz " Error" +geometry_error_string: .string "Geom" +read_error_string: .string "Read" +general_error_string: .string " Error" /* * message: write the string pointed to by %si
include/grub/dl.h +2 -2
@@ -41,10 +41,10 @@ static void \ grub_mod_fini (void)#define GRUB_MOD_NAME (name) \ -__asm__ (".section .modname\n.asciz \"" #name "\"\n") +__asm__ (".section .modname\n.string \"" #name "\"\n")#define GRUB_MOD_DEP (name) \ -__asm__ (".section .moddeps\n.asciz \"" #name "\"\n") +__asm__ (".section .moddeps\n.string \"" #name "\"\n")struct grub_dl_segment {
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
Hello. Here begins series of patches to make grub2 compile with apple's toolchain. It's actually just a split of previous patch. As there were no opposition to previous patch I will commit this series soon if nobody opposes
Patch was reversed
Quoted 4 lines
--
Regards
Vladimir 'phcoder' Serbinenko
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
boot/i386/pc/boot.S +7 -6
@@ -390,11 +390,11 @@ general_error: int $0x18 stop: jmp stop -notification_string: .string "GRUB " -geometry_error_string: .string "Geom" -hd_probe_error_string: .string "Hard Disk" -read_error_string: .string "Read" -general_error_string: .string " Error" +notification_string: .asciz "GRUB " +geometry_error_string: .asciz "Geom" +hd_probe_error_string: .asciz "Hard Disk" +read_error_string: .asciz "Read" +general_error_string: .asciz " Error" /* * message: write the string pointed to by %si
@@ -464,7 +464,8 @@ probe_loop: MSG(fd_probe_error_string) jmp general_error -fd_probe_error_string: .string "Floppy" +/* "Floppy" */ +fd_probe_error_string: .asciz "Floppy" 1: /* perform read */
boot/i386/pc/diskboot.S +6 -6
@@ -326,14 +326,14 @@ general_error: /* go here when you need to stop the machine hard after an error condition */ stop: jmp stop -notification_string: .string "loading" +notification_string: .asciz "loading" -notification_step: .string "." -notification_done: .string "\r\n" +notification_step: .asciz "." +notification_done: .asciz "\r\n" -geometry_error_string: .string "Geom" -read_error_string: .string "Read" -general_error_string: .string " Error" +geometry_error_string: .asciz "Geom" +read_error_string: .asciz "Read" +general_error_string: .asciz " Error" /* * message: write the string pointed to by %si
include/grub/dl.h +2 -2
@@ -41,10 +41,10 @@ static void \ grub_mod_fini (void)#define GRUB_MOD_NAME (name) \ -__asm__ (".section .modname\n.string \"" #name "\"\n") +__asm__ (".section .modname\n.asciz \"" #name "\"\n")#define GRUB_MOD_DEP (name) \ -__asm__ (".section .moddeps\n.string \"" #name "\"\n") +__asm__ (".section .moddeps\n.asciz \"" #name "\"\n")struct grub_dl_segment {