source: rtems/c/src/lib/libbsp/powerpc/papyrus/startup/linkcmds @ 7593d56c

4.104.114.84.95
Last change on this file since 7593d56c was 7593d56c, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 19, 1995 at 7:22:55 PM

file lost in crash and re-added

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the Papyrus.
4 *
5 *  $Id$
6 */
7
8OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
9              "elf32-powerpc")
10OUTPUT_ARCH(powerpc)
11 SEARCH_DIR(/usr/local/powerpc-rtems/lib);
12 
13ENTRY(download_entry)
14 
15MEMORY
16  {
17        RAM : ORIGIN = 0, LENGTH = 4M
18        FLASH : ORIGIN = 0xFF000000, LENGTH = 0x80000
19        EPROM : ORIGIN = 0xFFFE0000, LENGTH = 0x20000
20  }
21 
22/* Do we need any of these for elf?
23   __DYNAMIC = 0;    */
24SECTIONS
25{
26  .vectors 0x0100 :
27  {
28    *(.vectors)
29  }
30 
31  .text 0x20000 :
32  {
33     *(.entry)
34     *(.entry2)
35     *(.text)
36     *(.rodata)
37     *(.rodata1)
38     *(.descriptors)
39     *(rom_ver)
40  } > RAM
41 
42  /* R/W Data */
43  .data :
44  {
45    *(.data)
46    *(.data1)
47  } > RAM
48 
49  .got :
50  {
51     s.got = .;
52     *(.got.plt) *(.got)
53  } > RAM
54 
55  .bss :
56  {
57    bss.start = .;
58    *(.bss) *(.sbss) *(COMMON)
59    bss.end = ALIGN(4);
60  } > RAM
61 
62  bss.size = bss.end - bss.start;
63  PROVIDE(_end = bss.end);
64
65  .line 0 : { *(.line) }
66  .debug 0 : { *(.debug) }
67  .debug_sfnames 0 : { *(.debug_sfnames) }
68  .debug_srcinfo 0 : { *(.debug_srcinfo) }
69  .debug_pubnames 0 : { *(.debug_pubnames) }
70  .debug_aranges 0 : { *(.debug_aranges) }
71  .debug_aregion 0 : { *(.debug_aregion) }
72  .debug_macinfo 0 : { *(.debug_macinfo) }
73  .stab 0 : { *(.stab) }
74  .stabstr 0 : { *(.stabstr) }
75}
76
77
Note: See TracBrowser for help on using the repository browser.