summaryrefslogtreecommitdiffstats
path: root/src/module.ld
blob: f94f972183db92796a6fcae614ca0ae4cce70e93 (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
SECTIONS
{
    .text : {
	*(.text)
	*(.text._*)
	*(.rodata)
	*(.rodata.*)
	*(.glink)

	. = ALIGN(0x8);
	ctor_start_address = .;
	*(.ctors)
	ctor_end_address = .;
    }
    
    .data ALIGN(0x1000): {
	*(.data)
	*(.data.*)
	*(.branch_lt)
	*(.toc)
	*(.opd)
	*(.got)
	*(.plt)
	*(.bss)
	*(.bss.*)
    }

    .rela : {
	*(.rela.*)
    }

    /DISCARD/ : {
	*(.dtors)
    }
}
OpenPOWER on IntegriCloud