]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 2 Mar 2012 10:24:24 +0000 (11:24 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 2 Mar 2012 10:24:24 +0000 (11:24 +0100)
to ensure that it's after the last byte of .text.

ChangeLog
grub-core/boot/i386/pc/startup_raw.S

index 2852c52afb6c1641ce32ce536505b98b7591dabc..e074ba0bf9bb927549ab0030cb5a5aa2db6b5dd0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
+       to ensure that it's after the last byte of .text.
+
 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/ieee1275/ofpath.c (my_isdigit): New function.
index 2199f3e96b0924cb172bdc4a0f7a7c4d15407999..952cd814a93ffd14034b9582b32fb1b58eecf1ed 100644 (file)
@@ -105,8 +105,7 @@ LOCAL (codestart):
        call    grub_gate_a20
 
        movl    LOCAL(compressed_size), %edx
-       LOCAL(reed_solomon_size) = LOCAL(decompressor_end) - LOCAL(reed_solomon_part)
-       addl    $LOCAL(reed_solomon_size), %edx
+       addl    $(LOCAL(decompressor_end) - LOCAL(reed_solomon_part)), %edx
        movl    reed_solomon_redundancy, %ecx
        leal    LOCAL(reed_solomon_part), %eax
        cld
@@ -353,4 +352,5 @@ post_reed_solomon:
 
        .p2align 4
 
+       .bss
 LOCAL(decompressor_end):