source: mainline/kernel/arch/abs32le/_link.ld.in

Last change on this file was c89ae25, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 21 months ago

Fix and enable —gc-sections in /kernel and /boot

  • Property mode set to 100644
File size: 1.9 KB
Line 
1SECTIONS {
2 .text : {
3 kernel_load_address = .;
4 ktext_start = .;
5 *(.text .text.*);
6 ktext_end = .;
7 }
8 .data : {
9 kdata_start = .;
10 *(.data .data.*); /* initialized data */
11 *(.bss .bss.*); /* uninitialized static variables */
12 *(COMMON); /* global variables */
13
14 *(.rodata .rodata.*);
15 *(.eh_frame .eh_frame.*); /* stack unwinding data */
16 *(.eh_frame_hdr .eh_frame_hdr.*);
17 *(.sdata .sdata.*);
18 }
19 .sbss : {
20 *(.sbss .sbss.*);
21 *(.scommon .scommon.*);
22 }
23
24 kdata_end = .;
25
26 .comment 0 : { *(.comment); }
27 .debug_abbrev 0 : { *(.debug_abbrev); }
28 .debug_abbrev.dwo 0 : { *( .debug_abbrev.dwo); }
29 .debug_addr 0 : { *(.debug_addr); }
30 .debug_aranges 0 : { *(.debug_aranges); }
31 .debug_cu_index 0 : { *(.debug_cu_index); }
32 .debug_frame 0 : { *(.debug_frame); }
33 .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
34 .debug_info 0 : { *(.debug_info); }
35 .debug_info.dwo 0 : { *(.debug_info.dwo); }
36 .debug_line 0 : { *(.debug_line); }
37 .debug_line.dwo 0 : { *(.debug_line.dwo); }
38 .debug_line_str 0 : { *(.debug_line_str); }
39 .debug_loc 0 : { *(.debug_loc); }
40 .debug_loclists 0 : { *(.debug_loclists); }
41 .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
42 .debug_macinfo 0 : { *(.debug_macinfo); }
43 .debug_macro 0 : { *(.debug_macro); }
44 .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
45 .debug_names 0 : { *(.debug_names); }
46 .debug_pubnames 0 : { *(.debug_pubnames); }
47 .debug_pubtypes 0 : { *(.debug_pubtypes); }
48 .debug_ranges 0 : { *(.debug_ranges); }
49 .debug_rnglists 0 : { *(.debug_rnglists); }
50 .debug_str 0 : { *(.debug_str); }
51 .debug_str.dwo 0 : { *(.debug_str.dwo); }
52 .debug_str_offsets 0 : { *(.debug_str_offsets); }
53 .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
54 .debug_tu_index 0 : { *(.debug_tu_index); }
55 .debug_types 0 : { *(.debug_types); }
56
57 /DISCARD/ : {
58 *(.mdebug*);
59 *(.pdr);
60 *(.comment);
61 *(.note);
62 }
63}
Note: See TracBrowser for help on using the repository browser.