firmware: untabify linker scripts.
authorIngo Albrecht <prom@berlin.ccc.de>
Thu, 15 Jul 2010 22:30:13 +0000 (00:30 +0200)
committerIngo Albrecht <prom@berlin.ccc.de>
Tue, 20 Jul 2010 12:41:20 +0000 (14:41 +0200)
src/target/firmware/board/compal/ram.lds
src/target/firmware/board/compal_e88/loader.lds

index fcd0f0b..adc65f5 100644 (file)
@@ -10,114 +10,114 @@ OUTPUT_ARCH(arm)
 ENTRY(_start)
 MEMORY
 {
-       /* compal-loaded binary: our text, initialized data */
-       LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00010000
-       /* compal-loaded binary: our unitialized data, stacks, heap */
-       IRAM (rw) : ORIGIN = 0x00810000, LENGTH = 0x00010000
+    /* compal-loaded binary: our text, initialized data */
+    LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00010000
+    /* compal-loaded binary: our unitialized data, stacks, heap */
+    IRAM (rw) : ORIGIN = 0x00810000, LENGTH = 0x00010000
 }
 SECTIONS
 {
-       . = 0x800000;
+    . = 0x800000;
 
-       /* romloader data section, contains passthru interrupt vectors */
-       .compal.loader (NOLOAD) : { . = 0x100; } > LRAM
+    /* romloader data section, contains passthru interrupt vectors */
+    .compal.loader (NOLOAD) : { . = 0x100; } > LRAM
 
-       /* image signature (prepended by osmocon according to phone type) */
-       .compal.header (NOLOAD) : { . = 4; } > LRAM
+    /* image signature (prepended by osmocon according to phone type) */
+    .compal.header (NOLOAD) : { . = 4; } > LRAM
 
-       /* initialization code */
-       . = ALIGN(4);
-       .text.start : {
-               PROVIDE(_start = .);
-               KEEP(*(.text.start))
-               *(.text.start)
-       } > LRAM
+    /* initialization code */
+    . = ALIGN(4);
+    .text.start : {
+        PROVIDE(_start = .);
+        KEEP(*(.text.start))
+        *(.text.start)
+    } > LRAM
 
-       /* exception vectors from 0x80001c to 0x800034 */
-       .text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
-               KEEP(*(.text.exceptions))
-               * (.text.exceptions)
-               . = ALIGN(4);
-       } > LRAM
-       PROVIDE(_exceptions = LOADADDR(.text.exceptions));
+    /* exception vectors from 0x80001c to 0x800034 */
+    .text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
+        KEEP(*(.text.exceptions))
+        * (.text.exceptions)
+        . = ALIGN(4);
+    } > LRAM
+    PROVIDE(_exceptions = LOADADDR(.text.exceptions));
 
-       /* code */
-       . = ALIGN(4);
-       .text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) :
-             AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) {
-               /* regular code */
-               *(.text*)
+    /* code */
+    . = ALIGN(4);
+    .text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) :
+          AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) {
+        /* regular code */
+        *(.text*)
         /* always-in-ram code */
-               *(.ramtext*)
-               /* gcc voodoo */
-               *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
-               . = ALIGN(4);
-       } > LRAM
-       PROVIDE(_text_start = LOADADDR(.text));
-       PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
+        *(.ramtext*)
+        /* gcc voodoo */
+        *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
+        . = ALIGN(4);
+    } > LRAM
+    PROVIDE(_text_start = LOADADDR(.text));
+    PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
 
-       /* constructor pointers */
-       .ctors : {
-               /* ctor count */
-               LONG(SIZEOF(.ctors) / 4 - 2)
-               /* ctor pointers */
-               KEEP(*(SORT(.ctors)))
-               /* end of list */
-               LONG(0)
-       }
-       PROVIDE(_ctor_start = LOADADDR(.ctors));
-       PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
+    /* constructor pointers */
+    .ctors : {
+        /* ctor count */
+        LONG(SIZEOF(.ctors) / 4 - 2)
+        /* ctor pointers */
+        KEEP(*(SORT(.ctors)))
+        /* end of list */
+        LONG(0)
+    }
+    PROVIDE(_ctor_start = LOADADDR(.ctors));
+    PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
 
-       /* destructor pointers */
-       .dtors : {
-               /* dtor count */
-               LONG(SIZEOF(.dtors) / 4 - 2)
-               /* dtor pointers */
-               KEEP(*(SORT(.dtors)))
-               /* end of list */
-               LONG(0)
-       }
-       PROVIDE(_dtor_start = LOADADDR(.dtors));
-       PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
+    /* destructor pointers */
+    .dtors : {
+        /* dtor count */
+        LONG(SIZEOF(.dtors) / 4 - 2)
+        /* dtor pointers */
+        KEEP(*(SORT(.dtors)))
+        /* end of list */
+        LONG(0)
+    }
+    PROVIDE(_dtor_start = LOADADDR(.dtors));
+    PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
 
-       /* read-only data */
-       . = ALIGN(4);
-       .rodata : {
-               *(.rodata*)
-       } > LRAM
-       PROVIDE(_rodata_start = LOADADDR(.rodata));
-       PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
+    /* read-only data */
+    . = ALIGN(4);
+    .rodata : {
+        *(.rodata*)
+    } > LRAM
+    PROVIDE(_rodata_start = LOADADDR(.rodata));
+    PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
 
-       /* initialized data */
-       . = ALIGN(4);
-       .data : {
-               *(.data)
-       } > LRAM
-       PROVIDE(_data_start = LOADADDR(.data));
-       PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
+    /* initialized data */
+    . = ALIGN(4);
+    .data : {
+        *(.data)
+    } > LRAM
+    PROVIDE(_data_start = LOADADDR(.data));
+    PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
 
-       /* pic offset tables */
-       . = ALIGN(4);
-       .got : {
-               *(.got)
-               *(.got.plt) *(.igot.plt) *(.got) *(.igot)
-       } > LRAM
-       PROVIDE(_got_start = LOADADDR(.got));
-       PROVIDE(_got_end = LOADADDR(.got) + SIZEOF(.got));
+    /* pic offset tables */
+    . = ALIGN(4);
+    .got : {
+        *(.got)
+        *(.got.plt) *(.igot.plt) *(.got) *(.igot)
+    } > LRAM
+    PROVIDE(_got_start = LOADADDR(.got));
+    PROVIDE(_got_end = LOADADDR(.got) + SIZEOF(.got));
 
-       /* uninitialized data */
-       .bss (NOLOAD) : {
-               . = ALIGN(4);
-               __bss_start = .;
-               *(.bss)
-       } > IRAM
-       . = ALIGN(4);
-       __bss_end = .;
-       PROVIDE(_bss_start = __bss_start);
-       PROVIDE(_bss_end = __bss_end);
+    /* uninitialized data */
+    .bss (NOLOAD) : {
+        . = ALIGN(4);
+        __bss_start = .;
+        *(.bss)
+    } > IRAM
+    . = ALIGN(4);
+    __bss_end = .;
+    PROVIDE(_bss_start = __bss_start);
+    PROVIDE(_bss_end = __bss_end);
 
-       /* end of image */
-       . = ALIGN(4);
-       _end = .;
-       PROVIDE(end = .);
+    /* end of image */
+    . = ALIGN(4);
+    _end = .;
+    PROVIDE(end = .);
 }
index 7f87e75..fec71dc 100644 (file)
@@ -12,11 +12,11 @@ OUTPUT_ARCH(arm)
 ENTRY(_start)
 MEMORY
 {
-       /* 2 MBytes of external flash memory */
+    /* 2 MBytes of external flash memory */
     FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x200000
-       /* 256 kBytes of internal zero-waitstate sram */
+    /* 256 kBytes of internal zero-waitstate sram */
     IRAM  (rw) : ORIGIN = 0x00800000, LENGTH = 0x040000
-       /* 256 kBytes of external slow sram */
+    /* 256 kBytes of external slow sram */
     ERAM  (rw) : ORIGIN = 0x01000000, LENGTH = 0x040000
 }
 SECTIONS
@@ -39,7 +39,7 @@ SECTIONS
 
     /* Compal-style vector table */
     .compal.vectors 0x000020A0 : {
-               PROVIDE(_exceptions = .);
+        PROVIDE(_exceptions = .);
         KEEP(*(.text.exceptions))
         *(.text.exceptions)
     } > FLASH
@@ -61,31 +61,31 @@ SECTIONS
     PROVIDE(_text_start = ADDR(.text));
     PROVIDE(_text_end = ADDR(.text) + SIZEOF(.text));
 
-       /* constructor pointers */
-       . = ALIGN(4);
-       .ctors : {
-               /* ctor count */
-               LONG(SIZEOF(.ctors) / 4 - 2)
-               /* ctor pointers */
-               KEEP(*(SORT(.ctors)))
-               /* end of list */
-               LONG(0)
-       }
-       PROVIDE(_ctor_start = LOADADDR(.ctors));
-       PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
+    /* constructor pointers */
+    . = ALIGN(4);
+    .ctors : {
+        /* ctor count */
+        LONG(SIZEOF(.ctors) / 4 - 2)
+        /* ctor pointers */
+        KEEP(*(SORT(.ctors)))
+        /* end of list */
+        LONG(0)
+    }
+    PROVIDE(_ctor_start = LOADADDR(.ctors));
+    PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
 
-       /* destructor pointers */
-       . = ALIGN(4);
-       .dtors : {
-               /* dtor count */
-               LONG(SIZEOF(.dtors) / 4 - 2)
-               /* dtor pointers */
-               KEEP(*(SORT(.dtors)))
-               /* end of list */
-               LONG(0)
-       }
-       PROVIDE(_dtor_start = LOADADDR(.dtors));
-       PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
+    /* destructor pointers */
+    . = ALIGN(4);
+    .dtors : {
+        /* dtor count */
+        LONG(SIZEOF(.dtors) / 4 - 2)
+        /* dtor pointers */
+        KEEP(*(SORT(.dtors)))
+        /* end of list */
+        LONG(0)
+    }
+    PROVIDE(_dtor_start = LOADADDR(.dtors));
+    PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
 
     /* read-only data */
     .rodata : {
@@ -96,24 +96,24 @@ SECTIONS
 
     /* pic offset tables */
     .got : {
-               . = ALIGN(4);
+        . = ALIGN(4);
         *(.got)
         *(.got.plt) *(.igot.plt) *(.got) *(.igot)
-               . = ALIGN(4);
+        . = ALIGN(4);
     } > FLASH
     PROVIDE(_got_start = ADDR(.got));
     PROVIDE(_got_end = ADDR(.got) + SIZEOF(.got));
 
     /* reserved ram  */
     .compal.reservedram 0x800000 (NOLOAD) : {
-               . = 0xff;
+        . = 0xff;
     } > IRAM
 
     /* initialized data */
     .data : AT (LOADADDR(.got) + SIZEOF(.got)) {
-               . = ALIGN(4);
+        . = ALIGN(4);
         *(.data)
-               . = ALIGN(4);
+        . = ALIGN(4);
     } > IRAM
     PROVIDE(__data_start = LOADADDR(.data));
     PROVIDE(__data_end = LOADADDR(.data) + SIZEOF(.data));
@@ -122,9 +122,9 @@ SECTIONS
 
     /* ram code */
     .ramtext : AT (LOADADDR(.data) + SIZEOF(.data)) {
-               . = ALIGN(4);
+        . = ALIGN(4);
         *(.ramtext)
-               . = ALIGN(4);
+        . = ALIGN(4);
     } > IRAM
     PROVIDE(__ramtext_start = LOADADDR(.ramtext));
     PROVIDE(__ramtext_end = LOADADDR(.ramtext) + SIZEOF(.ramtext));
@@ -133,14 +133,14 @@ SECTIONS
 
     /* uninitialized data */
     .bss (NOLOAD) : {
-               . = ALIGN(4);
+        . = ALIGN(4);
         *(.bss)
         . = ALIGN(4);
     } > IRAM
     PROVIDE(__bss_start = ADDR(.bss));
     PROVIDE(__bss_end = ADDR(.bss) + SIZEOF(.bss));
-       PROVIDE(_bss_start = __bss_start);
-       PROVIDE(_bss_end = __bss_end);
+    PROVIDE(_bss_start = __bss_start);
+    PROVIDE(_bss_end = __bss_end);
 
     /* end of image */
     . = ALIGN(4);