4.104.114.84.95
Last change
on this file since b6394ae was
f86ec42,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:35:54
|
Added .eh_frame, C++ constructor, and C++ destructor sections.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* This file is a derivation of that found with the newlib-1.6 distribution |
---|
2 | * for the idp.ld file. That file, it appears, was originally written by |
---|
3 | * Rob Savoye. Other ideas came from Joel Sherrill for the RTEMS linkcmds |
---|
4 | * file (this is basically a mixture of the two). |
---|
5 | * |
---|
6 | * $Id$ |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Setup the memory map of the MC68ec0x0 Board (IDP) |
---|
11 | * stack grows up towards high memory. This works for |
---|
12 | * both the rom68k and the mon68k monitors. |
---|
13 | */ |
---|
14 | MEMORY |
---|
15 | { |
---|
16 | ram : org = 0x10000, l = 2M |
---|
17 | } |
---|
18 | |
---|
19 | SECTIONS |
---|
20 | { |
---|
21 | .text 0x10000: |
---|
22 | { |
---|
23 | text_start = . ; |
---|
24 | _text_start = . ; |
---|
25 | *(.text) |
---|
26 | . = ALIGN (16); |
---|
27 | |
---|
28 | *(.eh_fram) |
---|
29 | . = ALIGN (16); |
---|
30 | |
---|
31 | /* |
---|
32 | * C++ constructors |
---|
33 | */ |
---|
34 | __CTOR_LIST__ = .; |
---|
35 | LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) |
---|
36 | *(.ctors) |
---|
37 | LONG(0) |
---|
38 | __CTOR_END__ = .; |
---|
39 | __DTOR_LIST__ = .; |
---|
40 | LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) |
---|
41 | *(.dtors) |
---|
42 | LONG(0) |
---|
43 | __DTOR_END__ = .; |
---|
44 | etext = ALIGN( 0x10 ) ; |
---|
45 | _etext = .; |
---|
46 | } |
---|
47 | .data ADDR( .text ) + SIZEOF( .text ): |
---|
48 | { |
---|
49 | data_start = . ; |
---|
50 | _data_start = .; |
---|
51 | *(.data) |
---|
52 | edata = ALIGN( 0x10 ) ; |
---|
53 | _edata = .; |
---|
54 | } |
---|
55 | .bss ADDR( .data ) + SIZEOF( .data ): |
---|
56 | { |
---|
57 | bss_start = . ; |
---|
58 | _bss_start = . ; |
---|
59 | *(.bss) |
---|
60 | *(COMMON) |
---|
61 | end = . ; |
---|
62 | _end = . ; |
---|
63 | } |
---|
64 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.