aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/loongarch64/system/kernel.ld
blob: 56d8588f1a3221f47d0a7f99a200252cf685fe64 (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
ENTRY(_start)

SECTIONS
{
    /* Linux kernel legacy start address.  */
    . = 0x200000;
    _text = .;
    .text : {
        *(.text)
    }
    .rodata : {
        *(.rodata)
    }
    _etext = .;

    . = ALIGN(8192);
    _data = .;
    .got : {
        *(.got)
    }
    .data : {
	*(.sdata)
        *(.data)
    }
    _edata = .;
    .bss : {
        *(.bss)
    }
    _end = .;
}