~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/scriptedwizard/resources/arm/files/olimex-lpc213x/ld/target_2138.ld

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    linker script for Philips LPC2138
 
3
 */
 
4
 
 
5
ENTRY(reset_vector)
 
6
 
 
7
MEMORY
 
8
{
 
9
    /* internal Flash without Bootloader sectors */
 
10
    CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x0007D000
 
11
    /* reserve space for soft copy of exception vectors */
 
12
    VECT (rw) : ORIGIN = 0x40000000, LENGTH = 0x00000040
 
13
    DATA (rw) : ORIGIN = 0x40000040, LENGTH = 0x00007FC0
 
14
}
 
15
 
 
16
SECTIONS
 
17
{
 
18
 
 
19
    PROVIDE (PxPrepareInit = 0);
 
20
 
 
21
    .rom_vectors :
 
22
    {
 
23
      KEEP (*(.vectors))
 
24
    } > CODE =0 
 
25
    .text :
 
26
    {
 
27
      stext = ABSOLUTE(.); PROVIDE (__stext = ABSOLUTE(.));
 
28
      *(.text*)
 
29
      /* C++ stuff. */
 
30
      *(.gcc_except_table)
 
31
      *(.eh_frame)
 
32
      /* .gnu.warning sections are handled specially by elf32.em.  */
 
33
      *(.gnu.warning)
 
34
      *(.gnu.linkonce.t*)
 
35
      *(.init)
 
36
      *(.glue_7)
 
37
      *(.glue_7t)
 
38
      *(.fixup)
 
39
      *(.got)
 
40
      *(.fini)
 
41
    } > CODE  etext = .; PROVIDE (__etext = .); 
 
42
    .rodata :
 
43
    {
 
44
       *(.rodata*) *(.rodata.*) *(.toc) *(.gnu.linkonce.r*)
 
45
      . = ALIGN (4);
 
46
    } > CODE  
 
47
    .rodata1 :
 
48
    {
 
49
       *(.rodata1)
 
50
      . = ALIGN (4);
 
51
    } > CODE  
 
52
 
 
53
    .jcr :
 
54
    {
 
55
       KEEP (*(.jcr))
 
56
      . = ALIGN (4);
 
57
    } > CODE
 
58
 
 
59
    .data :
 
60
    {
 
61
      __ram_data_start = ABSOLUTE (.);
 
62
      *(.data*) *(.gnu.linkonce.d*)
 
63
      *(.data1)   _GOT1_START_ = ABSOLUTE (.);
 
64
      *(.got1) _GOT1_END_ = ABSOLUTE (.); _GOT2_START_ = ABSOLUTE (.);
 
65
      *(.got2) _GOT2_END_ = ABSOLUTE (.);
 
66
      . = ALIGN (4);
 
67
      __DEVTAB__ = ABSOLUTE (.);
 
68
      KEEP (*(SORT (.devtab*))) __DEVTAB_END__ = ABSOLUTE (.);
 
69
      __NETDEVTAB__ = ABSOLUTE (.);
 
70
      KEEP (*(SORT (.netdevtab*))) __NETDEVTAB_END__ = ABSOLUTE (.);
 
71
      __CTOR_LIST__ = ABSOLUTE (.);
 
72
      KEEP (*(SORT (.ctors*))) __CTOR_END__ = ABSOLUTE (.);
 
73
      __DTOR_LIST__ = ABSOLUTE (.);
 
74
      KEEP (*(SORT (.dtors*))) __DTOR_END__ = ABSOLUTE (.);
 
75
      *(.dynamic)
 
76
      *(.sdata*)
 
77
      *(.sbss*)
 
78
    } > DATA AT> CODE
 
79
    __rom_data_start = LOADADDR (.data);
 
80
    __ram_data_end = .; PROVIDE (__ram_data_end = .);
 
81
    _edata = .; PROVIDE (edata = .); PROVIDE (__rom_data_end = LOADADDR (.data) + SIZEOF(.data));
 
82
 
 
83
    .bss :
 
84
    {
 
85
      . = ALIGN (4);
 
86
      __bss_start = ABSOLUTE (.);
 
87
      *(.scommon)
 
88
      *(.dynbss)
 
89
      *(.bss*) *(.gnu.linkonce.b*)
 
90
      *(COMMON)
 
91
      __bss_end = ABSOLUTE (.);
 
92
    } > DATA  
 
93
    . = ALIGN(4);
 
94
    _end = .; PROVIDE (end = .); PROVIDE (__end__ = .); PROVIDE (__HEAP = .);
 
95
    PROVIDE (__heap_end__ = . + 0x0040); PROVIDE (__HEAP_END = . + 0x0040);
 
96
 
 
97
    .debug_aranges  0 : { *(.debug_aranges) }
 
98
    .debug_pubnames 0 : { *(.debug_pubnames) }
 
99
    .debug_info     0 : { *(.debug_info) }
 
100
    .debug_abbrev   0 : { *(.debug_abbrev) }
 
101
    .debug_line     0 : { *(.debug_line) }
 
102
    .debug_frame    0 : { *(.debug_frame) }
 
103
    .debug_str      0 : { *(.debug_str) }
 
104
    .debug_loc      0 : { *(.debug_loc) }
 
105
    .debug_macinfo  0 : { *(.debug_macinfo) } 
 
106
}