Last change
on this file since 470 was
444,
checked in by satin@…, 7 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.3 KB
|
Line | |
---|
1 | /* must compile with -nostdlib option */ |
---|
2 | OUTPUT_FORMAT("a.out-sunos-big", "a.out-sunos-big", |
---|
3 | "a.out-sparc-little") |
---|
4 | OUTPUT_ARCH(sparc) |
---|
5 | SEARCH_DIR(/usr/local/sparclet-aout/lib) |
---|
6 | PROVIDE (__stack = 0); |
---|
7 | ENTRY (start) |
---|
8 | STARTUP (crt0-701.o) |
---|
9 | GROUP (libsplet701.a libc.a libgcc.a) |
---|
10 | SECTIONS |
---|
11 | { |
---|
12 | /* Sparcmon likes to load programs starting at this address. */ |
---|
13 | . = 0x12010000; |
---|
14 | .text : |
---|
15 | { |
---|
16 | CREATE_OBJECT_SYMBOLS |
---|
17 | *(.text) |
---|
18 | /* The next six sections are for SunOS dynamic linking. The order |
---|
19 | is important. */ |
---|
20 | *(.dynrel) |
---|
21 | *(.hash) |
---|
22 | *(.dynsym) |
---|
23 | *(.dynstr) |
---|
24 | *(.rules) |
---|
25 | *(.need) |
---|
26 | _etext = .; |
---|
27 | __etext = .; |
---|
28 | } |
---|
29 | .data : |
---|
30 | { |
---|
31 | /* The first three sections are for SunOS dynamic linking. */ |
---|
32 | *(.dynamic) |
---|
33 | *(.got) |
---|
34 | *(.plt) |
---|
35 | *(.data) |
---|
36 | *(.linux-dynamic) /* For Linux dynamic linking. */ |
---|
37 | CONSTRUCTORS |
---|
38 | _edata = .; |
---|
39 | __edata = .; |
---|
40 | } |
---|
41 | .bss : |
---|
42 | { |
---|
43 | __bss_start = .; |
---|
44 | *(.bss) |
---|
45 | *(COMMON) |
---|
46 | _end = ALIGN(4) ; |
---|
47 | __end = ALIGN(4) ; |
---|
48 | } |
---|
49 | /* This is the value that Sparcmon assigns to the SP at reset, minus 4K. */ |
---|
50 | PROVIDE(___stack = 0x123ef000); |
---|
51 | PROVIDE(__stack = 0x123ef000); |
---|
52 | /* Provide 4K area for copying the trap vectors from ROM to RAM. */ |
---|
53 | PROVIDE(___trap_vectors = 0x123f0000); |
---|
54 | PROVIDE(__trap_vectors = 0x123f0000); |
---|
55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.