]> git.pld-linux.org Git - packages/crossarm-binutils.git/commitdiff
- ld scripts for philips LPC210x chipsets.
authorPaweł Sikora <pluto@pld-linux.org>
Sun, 10 Jul 2005 21:35:42 +0000 (21:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    crossarm-lpc2104.ld -> 1.1
    crossarm-lpc2106.ld -> 1.1

crossarm-lpc2104.ld [new file with mode: 0644]
crossarm-lpc2106.ld [new file with mode: 0644]

diff --git a/crossarm-lpc2104.ld b/crossarm-lpc2104.ld
new file mode 100644 (file)
index 0000000..14aebec
--- /dev/null
@@ -0,0 +1,71 @@
+MEMORY
+{
+       FLASH(rx)       : ORIGIN = 0x00000000, LENGTH = 120K
+       RAM(rw)         : ORIGIN = 0x40000000, LENGTH = 16K
+}
+
+__STACK_START__                        = 0x40000000 + 16K;
+
+__UNDEFINED_STACK_SIZE__       = 0x0004;
+__ABORT_STACK_SIZE__           = 0x0004;
+__SUPERVISOR_STACK_SIZE__      = 0x0200;
+__FIQ_STACK_SIZE__             = 0x0080;
+__IRQ_STACK_SIZE__             = 0x0080;
+
+__UNDEFINED_SP__               = __STACK_START__ - 4;
+__ABORT_SP__                   = __UNDEFINED_SP__ - __UNDEFINED_STACK_SIZE__;
+__SUPERVISOR_SP__              = __ABORT_SP__ - __ABORT_STACK_SIZE__;
+__FIQ_SP__                     = __SUPERVISOR_SP__ - __SUPERVISOR_STACK_SIZE__;
+__IRQ_SP__                     = __FIQ_SP__ - __FIQ_STACK_SIZE__;
+__USER_SP__                    = __IRQ_SP__ - __IRQ_STACK_SIZE__;
+
+SECTIONS
+{
+       . = 0;
+       .text :
+       {
+               __text_start__ = .;
+               lpc210x-crt0.o(.text)
+               *(.text)
+               *(.glue_7)
+               *(.glue_7t)
+       }
+       >FLASH =0xFF
+       . = ALIGN(4);
+       .rodata :
+       {
+               *(.rodata)
+               *(.rodata*)
+       }
+       >FLASH =0xFF
+       . = ALIGN(4);
+       __text_end__ = .;
+
+       .data : AT(__text_end__)
+       {
+               __data_start__ = .;
+               *(.data)
+       }
+       >RAM
+       . = ALIGN(4);
+       __data_end__ = .;
+
+       .bss :
+       {
+               __bss_start__ = .;
+               *(.bss)
+               *(COMMON)
+       }
+       >RAM
+       . = ALIGN(4);
+       __bss_end__ = .;
+       _end = .;
+       PROVIDE (end = .);
+}
+
+PROVIDE(undefined_instruction_handler  = endless_loop);
+PROVIDE(software_interrupt_handler     = endless_loop);
+PROVIDE(prefetch_abort_handler         = endless_loop);
+PROVIDE(data_abort_handler             = endless_loop);
+PROVIDE(irq_handler                    = endless_loop);
+PROVIDE(fiq_handler                    = endless_loop);
diff --git a/crossarm-lpc2106.ld b/crossarm-lpc2106.ld
new file mode 100644 (file)
index 0000000..06c9144
--- /dev/null
@@ -0,0 +1,71 @@
+MEMORY
+{
+       FLASH(rx)       : ORIGIN = 0x00000000, LENGTH = 120K
+       RAM(rw)         : ORIGIN = 0x40000000, LENGTH = 64K
+}
+
+__STACK_START__                        = 0x40000000 + 64K;
+
+__UNDEFINED_STACK_SIZE__       = 0x0004;
+__ABORT_STACK_SIZE__           = 0x0004;
+__SUPERVISOR_STACK_SIZE__      = 0x0200;
+__FIQ_STACK_SIZE__             = 0x0080;
+__IRQ_STACK_SIZE__             = 0x0080;
+
+__UNDEFINED_SP__               = __STACK_START__ - 4;
+__ABORT_SP__                   = __UNDEFINED_SP__ - __UNDEFINED_STACK_SIZE__;
+__SUPERVISOR_SP__              = __ABORT_SP__ - __ABORT_STACK_SIZE__;
+__FIQ_SP__                     = __SUPERVISOR_SP__ - __SUPERVISOR_STACK_SIZE__;
+__IRQ_SP__                     = __FIQ_SP__ - __FIQ_STACK_SIZE__;
+__USER_SP__                    = __IRQ_SP__ - __IRQ_STACK_SIZE__;
+
+SECTIONS
+{
+       . = 0;
+       .text :
+       {
+               __text_start__ = .;
+               lpc210x-crt0.o(.text)
+               *(.text)
+               *(.glue_7)
+               *(.glue_7t)
+       }
+       >FLASH =0xFF
+       . = ALIGN(4);
+       .rodata :
+       {
+               *(.rodata)
+               *(.rodata*)
+       }
+       >FLASH =0xFF
+       . = ALIGN(4);
+       __text_end__ = .;
+
+       .data : AT(__text_end__)
+       {
+               __data_start__ = .;
+               *(.data)
+       }
+       >RAM
+       . = ALIGN(4);
+       __data_end__ = .;
+
+       .bss :
+       {
+               __bss_start__ = .;
+               *(.bss)
+               *(COMMON)
+       }
+       >RAM
+       . = ALIGN(4);
+       __bss_end__ = .;
+       _end = .;
+       PROVIDE (end = .);
+}
+
+PROVIDE(undefined_instruction_handler  = endless_loop);
+PROVIDE(software_interrupt_handler     = endless_loop);
+PROVIDE(prefetch_abort_handler         = endless_loop);
+PROVIDE(data_abort_handler             = endless_loop);
+PROVIDE(irq_handler                    = endless_loop);
+PROVIDE(fiq_handler                    = endless_loop);
This page took 0.053961 seconds and 4 git commands to generate.