~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

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