]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Replace .= with .org
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 24 Dec 2013 00:22:27 +0000 (01:22 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Tue, 24 Dec 2013 00:22:27 +0000 (01:22 +0100)
15 files changed:
grub-core/boot/i386/pc/boot.S
grub-core/boot/i386/pc/cdboot.S
grub-core/boot/i386/pc/diskboot.S
grub-core/boot/i386/pc/lnxboot.S
grub-core/boot/i386/pc/pxeboot.S
grub-core/boot/i386/pc/startup_raw.S
grub-core/boot/i386/qemu/boot.S
grub-core/boot/mips/loongson/fwstart.S
grub-core/boot/mips/startup_raw.S
grub-core/boot/sparc64/ieee1275/boot.S
grub-core/boot/sparc64/ieee1275/diskboot.S
grub-core/kern/i386/qemu/startup.S
grub-core/kern/mips/startup.S
grub-core/kern/sparc64/ieee1275/crt0.S
grub-core/tests/boot/kernel-8086.S

index b4975e2d029d74c9a6feba4b957f2ae515c72944..ad24d4e2180fe8bd4329952659995cf5b0d5fe39 100644 (file)
@@ -165,8 +165,8 @@ start:
         * this area.
         */
 
-       . = _start + GRUB_BOOT_MACHINE_BPB_START
-       . = _start + 4
+       .org _start + GRUB_BOOT_MACHINE_BPB_START
+       .org _start + 4
 #endif
 #ifdef HYBRID_BOOT
        floppy
@@ -174,7 +174,7 @@ start:
        scratch
 #endif
 
-       . = _start + GRUB_BOOT_MACHINE_BPB_END
+       .org _start + GRUB_BOOT_MACHINE_BPB_END
        /*
         * End of BIOS parameter block.
         */
@@ -183,14 +183,14 @@ kernel_address:
        .word   GRUB_BOOT_MACHINE_KERNEL_ADDR
 
 #ifndef HYBRID_BOOT
-       . = _start + GRUB_BOOT_MACHINE_KERNEL_SECTOR
+       .org _start + GRUB_BOOT_MACHINE_KERNEL_SECTOR
 kernel_sector:
        .long   1
 kernel_sector_high:
        .long   0
 #endif
 
-       . = _start + GRUB_BOOT_MACHINE_BOOT_DRIVE
+       .org _start + GRUB_BOOT_MACHINE_BOOT_DRIVE
 boot_drive:
        .byte 0xff      /* the disk to load kernel from */
                        /* 0xff means use the boot drive */
@@ -208,7 +208,7 @@ LOCAL(after_BPB):
          * possible boot drive. If GRUB is installed into a floppy,
          * this does nothing (only jump).
          */
-       . = _start + GRUB_BOOT_MACHINE_DRIVE_CHECK
+       .org _start + GRUB_BOOT_MACHINE_DRIVE_CHECK
 boot_drive_check:
         jmp     3f     /* grub-setup may overwrite this jump */
         testb   $0x80, %dl
@@ -511,13 +511,13 @@ LOCAL(message):
         */
 
 #ifdef HYBRID_BOOT
-       . = _start + 0x1b0
+       .org _start + 0x1b0
 kernel_sector:
        .long   1
 kernel_sector_high:
        .long   0
 #endif
-       . = _start + GRUB_BOOT_MACHINE_WINDOWS_NT_MAGIC
+       .org _start + GRUB_BOOT_MACHINE_WINDOWS_NT_MAGIC
 nt_magic:
        .long 0
        .word 0
@@ -528,7 +528,7 @@ nt_magic:
         *  sneaky, huh?
        */
 
-       . = _start + GRUB_BOOT_MACHINE_PART_START
+       .org _start + GRUB_BOOT_MACHINE_PART_START
 
 #ifndef HYBRID_BOOT
        floppy
@@ -536,7 +536,7 @@ nt_magic:
        scratch
 #endif
 
-       . = _start + GRUB_BOOT_MACHINE_PART_END
+       .org _start + GRUB_BOOT_MACHINE_PART_END
        
 /* the last 2 bytes in the sector 0 contain the signature */
        .word   GRUB_BOOT_MACHINE_SIGNATURE
index 92df7c76f056e710c1bf7005ea2efc15cc83d1a1..a2aed2cf20fc8f990f421a92d35011a416419033 100644 (file)
@@ -43,7 +43,7 @@ _start:
 LOCAL(next):
        jmp     1f
 
-       . = start + 8
+       .org start + 8
 
 bi_pvd:
        .long 0         /* LBA of primary volume descriptor.  */
@@ -168,6 +168,6 @@ err_noboot_msg:
 err_cdfail_msg:
        .ascii  "cdrom read fails\0"
 
-       . = start + 0x7FF
+       .org start + 0x7FF
 
        .byte   0
index d030a14c9163953dd49f105f40363ac676b55f93..680c4b16c374a547cd0d3183a0f31c8c2f794478 100644 (file)
@@ -362,7 +362,7 @@ LOCAL(message):
        .word 0
        .word 0
 
-       . = _start + 0x200 - GRUB_BOOT_MACHINE_LIST_SIZE
+       .org _start + 0x200 - GRUB_BOOT_MACHINE_LIST_SIZE
 LOCAL(firstlist):      /* this label has to be before the first list entry!!! */
         /* fill the first data listing with the default */
 blocklist_default_start:
index 87e56a2fd58dcc03fefc33173f0798e2f44360ad..bf09577a6d522dd8eed8dd39d61a39ee39ab565c 100644 (file)
@@ -41,7 +41,7 @@ data_start:
        xorl    %ebp, %ebp
        jmp     LOCAL(linux_next)
 
-       . = data_start + 0x1F1
+       .org data_start + 0x1F1
 
 setup_sects:
        .byte   CODE_SECTORS
@@ -292,4 +292,4 @@ LOCAL(fail):
 err_int15_msg:
        .ascii  "move memory fails\0"
 
-       . = _start + CODE_SECTORS * 512
+       .org _start + CODE_SECTORS * 512
index 446bfc781a3ac0524678a44ddbe47a81a000330b..ac44ebcce73b45b3a5c63f5fcf6401cfb03df011 100644 (file)
@@ -38,5 +38,5 @@ start:
        /* This region is a junk. Do you say that this is wasteful?
           But I like that the memory layout of the body is consistent
           among different kernels rather than scamping just for 1.5KB. */
-       . = _start + 0x8200 - 0x7C00 - 0x200 - 1
+       .org _start + 0x8200 - 0x7C00 - 0x200 - 1
        .byte   0
index 7b1c5025e977c52bac769b8774d32e712c4072b0..4b498cbae1d8d5d59eabf008d46a2b5e6007a69b 100644 (file)
@@ -50,23 +50,23 @@ LOCAL (base):
         *  This is a special data area.
         */
 
-       . = _start + GRUB_DECOMPRESSOR_MACHINE_COMPRESSED_SIZE
+       .org _start + GRUB_DECOMPRESSOR_MACHINE_COMPRESSED_SIZE
 LOCAL(compressed_size):
        .long 0
-       . = _start + GRUB_DECOMPRESSOR_MACHINE_UNCOMPRESSED_SIZE
+       .org _start + GRUB_DECOMPRESSOR_MACHINE_UNCOMPRESSED_SIZE
 LOCAL(uncompressed_size):
        .long 0
 
-       . = _start + GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY
+       .org _start + GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY
 reed_solomon_redundancy:
        .long   0
-       . = _start + GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH
+       .org _start + GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH
        .short  (LOCAL(reed_solomon_part) - _start)
 
 /*
  *  This is the area for all of the special variables.
  */
-       . = _start + GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE
+       .org _start + GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE
 LOCAL(boot_dev):
        .byte   0xFF, 0xFF, 0xFF
 LOCAL(boot_drive):
index 8d97fc18c5b5229bb51995f58da076e3811b31d7..70774d032b23577e435a0d294cd8f3109e447f0a 100644 (file)
@@ -31,7 +31,7 @@ _start:
 
        jmp     1f
 
-       . = _start + GRUB_BOOT_I386_QEMU_CORE_ENTRY_ADDR
+       .org _start + GRUB_BOOT_I386_QEMU_CORE_ENTRY_ADDR
 VARIABLE(grub_core_entry_addr)
        .long   0
 1:
@@ -66,9 +66,9 @@ VARIABLE(grub_core_entry_addr)
        /* Intel, in its infinite wisdom, decided to put the i8086 entry point
           *right here* and this is why we need this kludge.  */
 
-       . = GRUB_BOOT_MACHINE_SIZE - 16
+       .org GRUB_BOOT_MACHINE_SIZE - 16
 
        .code16
        
        jmp     _start
-       . = GRUB_BOOT_MACHINE_SIZE
+       .org GRUB_BOOT_MACHINE_SIZE
index 6ae3269900c48305a62527891b8c910cfd0ebc95..4da6a6b88dffcaab0d60fea169c4707fd3306edc 100644 (file)
@@ -162,7 +162,7 @@ retry_cs5536:
 
        b continue
 
-       . = start + GRUB_CPU_LOONGSON_FLASH_TLB_REFILL - GRUB_CPU_LOONGSON_FLASH_START
+       .org start + GRUB_CPU_LOONGSON_FLASH_TLB_REFILL - GRUB_CPU_LOONGSON_FLASH_START
 tlb_refill:    
        mfc0 $s1, GRUB_CPU_LOONGSON_COP0_EPC
        mfc0 $s2, GRUB_CPU_LOONGSON_COP0_BADVADDR
@@ -196,13 +196,13 @@ tlb_refill:
        b fatal
         addiu $a0, $a0, %lo(unhandled_tlb_refill)
 
-       . = start + GRUB_CPU_LOONGSON_FLASH_CACHE_ERROR - GRUB_CPU_LOONGSON_FLASH_START
+       .org start + GRUB_CPU_LOONGSON_FLASH_CACHE_ERROR - GRUB_CPU_LOONGSON_FLASH_START
 cache_error:
        lui $a0, %hi(unhandled_cache_error)
        b fatal
         addiu $a0, $a0, %lo(unhandled_cache_error)
 
-       . = start + GRUB_CPU_LOONGSON_FLASH_OTHER_EXCEPTION - GRUB_CPU_LOONGSON_FLASH_START
+       .org start + GRUB_CPU_LOONGSON_FLASH_OTHER_EXCEPTION - GRUB_CPU_LOONGSON_FLASH_START
 other_exception:
        mfc0 $s0, GRUB_CPU_LOONGSON_COP0_CAUSE
        mfc0 $s1, GRUB_CPU_LOONGSON_COP0_EPC
index 29e93c17ebcbec6a205943ce49f864424ad9564b..9f399562516e949d3a1eab755b443635dd376ab6 100644 (file)
@@ -39,13 +39,13 @@ start:
        bal codestart
         nop
 base:  
-       . = _start + GRUB_DECOMPRESSOR_MACHINE_COMPRESSED_SIZE
+       .org _start + GRUB_DECOMPRESSOR_MACHINE_COMPRESSED_SIZE
 compressed_size:
        .long 0
-       . = _start + GRUB_DECOMPRESSOR_MACHINE_UNCOMPRESSED_SIZE
+       .org _start + GRUB_DECOMPRESSOR_MACHINE_UNCOMPRESSED_SIZE
 uncompressed_size:
        .long 0
-       . = _start + GRUB_DECOMPRESSOR_MACHINE_UNCOMPRESSED_ADDR
+       .org _start + GRUB_DECOMPRESSOR_MACHINE_UNCOMPRESSED_ADDR
 uncompressed_addr:
        .long 0
 codestart:
index 5073677499e67df05a98eacd68d21537e4c47059..c648c46c61ebe9a7a503b50e43b7678ede3282a5 100644 (file)
@@ -41,9 +41,9 @@ pic_base:
         * After loading in that block we will execute it by jumping to the
         * load address plus the size of the prepended A.OUT header (32 bytes).
         */
-       . = _start + GRUB_BOOT_MACHINE_BOOT_DEVPATH
+       .org _start + GRUB_BOOT_MACHINE_BOOT_DEVPATH
 boot_path:
-       . = _start + GRUB_BOOT_MACHINE_KERNEL_BYTE
+       .org _start + GRUB_BOOT_MACHINE_KERNEL_BYTE
 boot_path_end:
 kernel_byte:           .xword (2 << 9)
 kernel_address:                .word  GRUB_BOOT_MACHINE_KERNEL_ADDR
@@ -52,7 +52,7 @@ kernel_address:               .word  GRUB_BOOT_MACHINE_KERNEL_ADDR
 #define boot_path_end (_start + 1024)
 #include <grub/offsets.h>
 
-       . = _start + 8
+       .org _start + 8
 kernel_byte:           .xword (2 << 9)
 kernel_size:           .word  512
 kernel_address:                .word  GRUB_BOOT_SPARC64_IEEE1275_IMAGE_ADDRESS
@@ -224,7 +224,7 @@ bootpath_known:
 #else
         nop
 #endif
-       . = _start + GRUB_BOOT_MACHINE_CODE_END
+       .org _start + GRUB_BOOT_MACHINE_CODE_END
 
 /* the last 4 bytes in the sector 0 contain the signature */
        .word   GRUB_BOOT_MACHINE_SIGNATURE
index e020f622181ef18de98c8e9814eb64f0d159b1d6..f84a5b453d8248eb3fbb0f41a4406c3b9d08a4b5 100644 (file)
@@ -136,7 +136,7 @@ lastlist:
        .word   0
        .word   0
 
-       . = _start + (0x200 - GRUB_BOOT_SPARC64_IEEE1275_LIST_SIZE)
+       .org _start + (0x200 - GRUB_BOOT_SPARC64_IEEE1275_LIST_SIZE)
 blocklist_default_start:
        .word   0
        .word   2
index 3d47d1e4f5e8157bef4c673bf1971d81ca553e3e..e2d5f562a76588fc3c62857ff37326c0937397a1 100644 (file)
@@ -28,7 +28,7 @@
 _start:
        jmp     codestart
 
-       . = _start + GRUB_KERNEL_I386_QEMU_CORE_ENTRY_ADDR
+       .org _start + GRUB_KERNEL_I386_QEMU_CORE_ENTRY_ADDR
 VARIABLE(grub_core_entry_addr)
        .long   0
 
index 709a91afa6840154d43c11fa4de2a8384cfcadb1..25d5fa583ed1145e5508714c64a3369c5c65ce7d 100644 (file)
@@ -36,7 +36,7 @@ start:
        bal cont
         nop
 
-       . = _start + GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE
+       .org _start + GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE
 VARIABLE(grub_total_modules_size)
        .long 0
 
index 79b6bb325dd6a420b2f639c50d1fc465a04d42a7..36f9691ae416f5cfde335fd54f8c4ba05303a2d5 100644 (file)
@@ -27,7 +27,7 @@ _start:
        ba      codestart
         mov  %o4, %o0
 
-       . = EXT_C(_start) + GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE
+       .org EXT_C(_start) + GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE
 
 VARIABLE(grub_total_module_size)
        .word   0
index 510897c883f0be7bb438d5de137dd2e3840f92d9..a2d1e6649e202f84650082eb8d5104c10d592abb 100644 (file)
@@ -46,5 +46,5 @@ message:
        .ascii "Boot Test Passed Successfully\n" SUCCESSFUL_BOOT_STRING "\n"
        .byte 0
 
-       . = base + 510
+       .org base + 510
        .short 0xaa55
\ No newline at end of file