blob: 2c6a69600d31a0bf838a511c429de46385f19ecb [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001ENTRY(_start)
2SECTIONS
3{
4 . = 0;
5 _text = .;
6
7 .text : {
8 _start = .;
9 KEEP (*(.start))
10 KEEP (*(.text))
11 *(.text.*)
12 *(.fixup)
13 *(.gnu.warning)
14 *(.glue_7t)
15 *(.glue_7)
16 }
17 .rodata : {
18 *(.rodata)
19 *(.rodata.*)
20 }
21 .compressed_data : {
22 KEEP (*(.compressed_data))
23 }
24
25 . = ALIGN(4);
26 _etext = .;
27
28 .got.plt : { *(.got.plt) }
29 _got_start = .;
30 .got : { *(.got) }
31 _got_end = .;
32
33 /* ensure the zImage file size is always a multiple of 64 bits */
34 /* (without a dummy byte, ld just ignores the empty section) */
35 .pad : { BYTE(0); . = ALIGN(8); }
36 _edata = .;
37
38 . = ALIGN(8);
39 __bss_start = .;
40 .bss : { *(.bss*) }
41 __bss_end = .;
42
43 . = ALIGN(8); /* the stack must be 64-bit aligned */
44 .stack : { *(.stack) }
45
46 .stab 0 : { *(.stab) }
47 .stabstr 0 : { *(.stabstr) }
48 .stab.excl 0 : { *(.stab.excl) }
49 .stab.exclstr 0 : { *(.stab.exclstr) }
50 .stab.index 0 : { *(.stab.index) }
51 .stab.indexstr 0 : { *(.stab.indexstr) }
52 .comment 0 : { *(.comment) }
53}