source: mainline/kernel/arch/sparc64/_link.ld.in@ b169619

topic/msim-upgrade topic/simplify-dev-export
Last change on this file since b169619 was c89ae25, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 22 months ago

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

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/** SPARC64 linker script
2 *
3 * It is ELF format, but its only section looks like this:
4 * kernel text
5 * kernel data
6 *
7 */
8
9#include <arch/boot/boot.h>
10
11ENTRY(kernel_image_start)
12
13SECTIONS {
14 kernel_load_address = VMA;
15
16 .image (VMA + SIZEOF_HEADERS): AT (LMA + SIZEOF_HEADERS) {
17 ktext_start = .;
18 KEEP(*(K_TEXT_START));
19 *(.text .text.*);
20 ktext_end = .;
21
22 kdata_start = .;
23 KEEP(*(K_DATA_START));
24 *(.rodata .rodata.*);
25 *(.eh_frame .eh_frame.*); /* stack unwinding data */
26 *(.eh_frame_hdr .eh_frame_hdr.*);
27 *(.data .data.*); /* initialized data */
28 *(.sdata .sdata.*);
29 *(.sdata2 .sdata2.*);
30 *(.sbss .sbss.*);
31 . = ALIGN(8);
32 *(.bss .bss.*); /* uninitialized static variables */
33 *(COMMON); /* global variables */
34 kdata_end = .;
35 }
36
37 .comment 0 : { *(.comment); }
38 .debug_abbrev 0 : { *(.debug_abbrev); }
39 .debug_abbrev.dwo 0 : { *( .debug_abbrev.dwo); }
40 .debug_addr 0 : { *(.debug_addr); }
41 .debug_aranges 0 : { *(.debug_aranges); }
42 .debug_cu_index 0 : { *(.debug_cu_index); }
43 .debug_frame 0 : { *(.debug_frame); }
44 .debug_frame_hdr 0 : { *(.debug_frame_hdr); }
45 .debug_info 0 : { *(.debug_info); }
46 .debug_info.dwo 0 : { *(.debug_info.dwo); }
47 .debug_line 0 : { *(.debug_line); }
48 .debug_line.dwo 0 : { *(.debug_line.dwo); }
49 .debug_line_str 0 : { *(.debug_line_str); }
50 .debug_loc 0 : { *(.debug_loc); }
51 .debug_loclists 0 : { *(.debug_loclists); }
52 .debug_loclists.dwo 0 : { *(.debug_loclists.dwo); }
53 .debug_macinfo 0 : { *(.debug_macinfo); }
54 .debug_macro 0 : { *(.debug_macro); }
55 .debug_macro.dwo 0 : { *(.debug_macro.dwo); }
56 .debug_names 0 : { *(.debug_names); }
57 .debug_pubnames 0 : { *(.debug_pubnames); }
58 .debug_pubtypes 0 : { *(.debug_pubtypes); }
59 .debug_ranges 0 : { *(.debug_ranges); }
60 .debug_rnglists 0 : { *(.debug_rnglists); }
61 .debug_str 0 : { *(.debug_str); }
62 .debug_str.dwo 0 : { *(.debug_str.dwo); }
63 .debug_str_offsets 0 : { *(.debug_str_offsets); }
64 .debug_str_offsets.dwo 0 : { *(.debug_str_offsets.dwo); }
65 .debug_tu_index 0 : { *(.debug_tu_index); }
66 .debug_types 0 : { *(.debug_types); }
67
68 /DISCARD/ : {
69 *(*);
70 }
71
72}
Note: See TracBrowser for help on using the repository browser.