Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tsc701.ld « sparc « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc6cd73e561f0fc647a346ec237272f91b3a5994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* must compile with -nostdlib option */
OUTPUT_FORMAT("a.out-sunos-big", "a.out-sunos-big",
              "a.out-sparc-little")
OUTPUT_ARCH(sparc)
SEARCH_DIR(/usr/local/sparclet-aout/lib)
PROVIDE (__stack = 0);
ENTRY (start)
STARTUP (crt0-701.o)
GROUP (libsplet701.a libc.a libgcc.a)
SECTIONS
{
  /* Sparcmon likes to load programs starting at this address. */
  . = 0x12010000;
  .text :
  {
    CREATE_OBJECT_SYMBOLS
    *(.text)
    /* The next six sections are for SunOS dynamic linking.  The order
       is important.  */
    *(.dynrel)  
    *(.hash)
    *(.dynsym)
    *(.dynstr)
    *(.rules)
    *(.need)
    _etext = .;
    __etext = .;
  }
  .data :
  {
    /* The first three sections are for SunOS dynamic linking.  */
    *(.dynamic)
    *(.got)
    *(.plt)
    *(.data)
    *(.linux-dynamic) /* For Linux dynamic linking.  */
    CONSTRUCTORS
    _edata  =  .;
    __edata  =  .;
  }
  .bss :
  {
    __bss_start = .;
   *(.bss)
   *(COMMON)
   _end = ALIGN(4) ;
   __end = ALIGN(4) ;
  }
  /* This is the value that Sparcmon assigns to the SP at reset, minus 4K. */
  PROVIDE(___stack = 0x123ef000);
  PROVIDE(__stack = 0x123ef000);
  /* Provide 4K area for copying the trap vectors from ROM to RAM.  */
  PROVIDE(___trap_vectors = 0x123f0000);
  PROVIDE(__trap_vectors = 0x123f0000);
}