~jsvoboda/helenos/dnsr

« back to all changes in this revision

Viewing changes to kernel/arch/mips32/_link.ld.in

  • Committer: Martin Decky
  • Date: 2009-08-04 11:19:19 UTC
  • Revision ID: martin@uranus.dsrg.hide.ms.mff.cuni.cz-20090804111919-evyclddlr3v5lhmp
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * MIPS32 linker script
 
3
 *
 
4
 *  kernel text
 
5
 *  kernel data
 
6
 *
 
7
 */
 
8
 
 
9
#undef mips
 
10
#define mips mips
 
11
 
 
12
#define KERNEL_LOAD_ADDRESS 0x80100000
 
13
 
 
14
OUTPUT_ARCH(mips)
 
15
ENTRY(kernel_image_start)
 
16
 
 
17
SECTIONS {
 
18
        . = KERNEL_LOAD_ADDRESS;
 
19
        .text : {
 
20
                ktext_start = .;
 
21
                *(.text);
 
22
                ktext_end = .;
 
23
        }
 
24
        .data : {
 
25
                kdata_start = .;
 
26
                *(.data);                       /* initialized data */
 
27
                hardcoded_ktext_size = .;
 
28
                LONG(ktext_end - ktext_start);
 
29
                hardcoded_kdata_size = .;
 
30
                LONG(kdata_end - kdata_start);
 
31
                hardcoded_load_address = .;
 
32
                LONG(KERNEL_LOAD_ADDRESS);
 
33
                *(.rodata*);
 
34
                *(.sdata);
 
35
                *(.reginfo);
 
36
                *(.sbss);
 
37
                *(.scommon);
 
38
                *(.bss);                        /* uninitialized static variables */
 
39
                *(COMMON);                      /* global variables */
 
40
                symbol_table = .;
 
41
                *(symtab.*);
 
42
        }
 
43
        _gp = . + 0x8000;
 
44
        .lit8 : { *(.lit8) }
 
45
        .lit4 : { *(.lit4) }
 
46
        
 
47
        kdata_end = .;
 
48
        
 
49
        /DISCARD/ : {
 
50
                *(.mdebug*);
 
51
                *(.pdr);
 
52
                *(.comment);
 
53
                *(.note);
 
54
        }
 
55
}