[zbin] Change fixup semantics to support ROMs over 128k uncompressed
[people/oremanj/gpxe.git] / src / arch / i386 / prefix / nbiprefix.S
index 4fb4acb..607d80f 100644 (file)
@@ -30,16 +30,16 @@ segment_header:
        .byte   0
        .byte   0x04            /* Last segment */
        .long   0x00007e00
-imglen:        .long   _filesz - 512
-memlen:        .long   _filesz - 512
+imglen:        .long   -512
+memlen:        .long   -512
        .size   segment_header, . - segment_header
 
        .section ".zinfo.fixup", "a", @progbits /* Compressor fixups */
-       .ascii  "SUBL"
+       .ascii  "ADDL"
        .long   imglen
        .long   1
        .long   0
-       .ascii  "SUBL"
+       .ascii  "ADDL"
        .long   memlen
        .long   1
        .long   0