]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 May 2012 11:54:33 +0000 (13:54 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 May 2012 11:54:33 +0000 (13:54 +0200)
objconv bug.

ChangeLog
grub-core/kern/i386/pc/startup.S

index 93a4da5d6053fe03da71fc1c8968ffa880b51fee..9f724e568d677609a62f1c19722341fbbf20ea5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-29  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
+       objconv bug.
+
 2012-05-29  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
index c05b27e965334753afc486a5591e5b26ebc0712c..6bb36c603be50c17060fd49d0439c2b1d75da71a 100644 (file)
@@ -202,6 +202,10 @@ VARIABLE(grub_realidt)
        .long 0
 
 #ifdef __APPLE__
+       /* Older versions of objconv assume that there is the same number
+          of text and data sections. Hence this dummy.  */
+       .section __TEXT, __zz_dummy
+       .byte 0
        .globl EXT_C(_edata)
        .globl EXT_C(grub_boot_device)
        .zerofill __DATA, __aa_before_bss, EXT_C(_edata), 1, 0