4.104.114.84.95
Last change
on this file since 69537ca9 was
01c36de,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/06/99 at 18:04:34
|
Added more sections and made minor modifications to let the linkcmds
work with m68k-elf on late model versions of binutils (990901+)
without overlapping or missing section errors.
|
-
Property mode set to
100644
|
File size:
1.4 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 | |
---|
15 | StackSize = DEFINED(StackSize) ? StackSize : 0x1000; |
---|
16 | |
---|
17 | MEMORY |
---|
18 | { |
---|
19 | ram : org = 0x10000, l = 2M |
---|
20 | } |
---|
21 | |
---|
22 | SECTIONS |
---|
23 | { |
---|
24 | .text 0x10000: |
---|
25 | { |
---|
26 | text_start = . ; |
---|
27 | _text_start = . ; |
---|
28 | *(.text) |
---|
29 | . = ALIGN (16); |
---|
30 | |
---|
31 | *(.eh_fram) |
---|
32 | . = ALIGN (16); |
---|
33 | |
---|
34 | . = ALIGN (16); |
---|
35 | *(.gcc_exc) |
---|
36 | |
---|
37 | /* |
---|
38 | * C++ constructors |
---|
39 | */ |
---|
40 | __CTOR_LIST__ = .; |
---|
41 | LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) |
---|
42 | *(.ctors) |
---|
43 | LONG(0) |
---|
44 | __CTOR_END__ = .; |
---|
45 | __DTOR_LIST__ = .; |
---|
46 | LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) |
---|
47 | *(.dtors) |
---|
48 | LONG(0) |
---|
49 | __DTOR_END__ = .; |
---|
50 | etext = ALIGN( 0x10 ) ; |
---|
51 | _etext = .; |
---|
52 | } |
---|
53 | .data : { |
---|
54 | data_start = . ; |
---|
55 | _data_start = .; |
---|
56 | *(.data) |
---|
57 | edata = ALIGN( 0x10 ) ; |
---|
58 | _edata = .; |
---|
59 | } |
---|
60 | .bss : { |
---|
61 | bss_start = . ; |
---|
62 | _bss_start = . ; |
---|
63 | *(.bss) |
---|
64 | *(COMMON) |
---|
65 | . += StackSize; /* XXX -- Old gld can't handle this */ |
---|
66 | . = ALIGN (16); |
---|
67 | stack_init = .; |
---|
68 | end = . ; |
---|
69 | _end = . ; |
---|
70 | } |
---|
71 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.