1 1.1.2.2 rmind /* Default linker script, for normal executables */ 2 1.1.2.2 rmind OUTPUT_FORMAT("elf64-powerpc", "elf64-powerpc", 3 1.1.2.2 rmind "elf64-powerpc") 4 1.1.2.2 rmind OUTPUT_ARCH(powerpc:common64) 5 1.1.2.2 rmind ENTRY(_start) 6 1.1.2.2 rmind SEARCH_DIR(/lib); 7 1.1.2.2 rmind SECTIONS 8 1.1.2.2 rmind { 9 1.1.2.2 rmind /* Read-only sections, merged into text segment. Assumes the 10 1.1.2.2 rmind kernel Makefile sets the start address via -Ttext. */ 11 1.1.2.2 rmind .text : 12 1.1.2.2 rmind { 13 1.1.2.2 rmind PROVIDE_HIDDEN (__eprol = .); 14 1.1.2.2 rmind *(.text) 15 1.1.2.2 rmind *(.text.unlikely .text.*_unlikely) 16 1.1.2.2 rmind *(.text.exit .text.exit.*) 17 1.1.2.2 rmind *(.text.startup .text.startup.*) 18 1.1.2.2 rmind *(.text.hot .text.hot.*) 19 1.1.2.2 rmind *(.text.* .gnu.linkonce.t.*) 20 1.1.2.2 rmind __stub_start = .; 21 1.1.2.2 rmind *(.stub) 22 1.1.2.2 rmind __stub_end = .; 23 1.1.2.2 rmind __stub_pmap_start = .; 24 1.1.2.2 rmind *(.stub.pmap) 25 1.1.2.2 rmind __stub_pmap_end = .; 26 1.1.2.2 rmind /* .gnu.warning sections are handled specially by elf32.em. */ 27 1.1.2.2 rmind *(.gnu.warning) 28 1.1.2.2 rmind *(.glink) 29 1.1.2.2 rmind } =0x60000000 30 1.1.2.2 rmind _etext = .; 31 1.1.2.2 rmind PROVIDE (__etext = .); 32 1.1.2.2 rmind PROVIDE (_etext = .); 33 1.1.2.2 rmind PROVIDE (etext = .); 34 1.1.2.2 rmind .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } 35 1.1.2.2 rmind .rodata1 : { *(.rodata1) } 36 1.1.2.2 rmind .sdata2 : 37 1.1.2.2 rmind { 38 1.1.2.2 rmind *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) 39 1.1.2.2 rmind } 40 1.1.2.2 rmind .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } 41 1.1.2.2 rmind .jcr : { KEEP (*(.jcr)) } 42 1.1.2.2 rmind . = DATA_SEGMENT_RELRO_END (0, .); 43 1.1.2.2 rmind .data : 44 1.1.2.2 rmind { 45 1.1.2.2 rmind _fdata = .; 46 1.1.2.2 rmind *(.data .data.* .gnu.linkonce.d.*) 47 1.1.2.2 rmind SORT(CONSTRUCTORS) 48 1.1.2.2 rmind } 49 1.1.2.2 rmind .data1 : { *(.data1) } 50 1.1.2.2 rmind .toc1 : ALIGN(8) { *(.toc1) } 51 1.1.2.2 rmind .opd : ALIGN(8) { KEEP (*(.opd)) } 52 1.1.2.2 rmind .branch_lt : ALIGN(8) { *(.branch_lt) } 53 1.1.2.2 rmind .got : ALIGN(8) { *(.got .toc) } 54 1.1.2.2 rmind /* We want the small data sections together, so single-instruction offsets 55 1.1.2.2 rmind can access them all, and initialized data all before uninitialized, so 56 1.1.2.2 rmind we can shorten the on-disk segment size. */ 57 1.1.2.2 rmind . = ALIGN(64); /* COHERENCY UNIT */ 58 1.1.2.2 rmind .data.cacheline_aligned : { *(.data.cacheline_aligned) } 59 1.1.2.2 rmind . = ALIGN(64); /* COHERENCY UNIT */ 60 1.1.2.2 rmind .data.read_mostly : { *(.data.read_mostly) } 61 1.1.2.2 rmind . = ALIGN(64); /* COHERENCY UNIT */ 62 1.1.2.2 rmind .sdata : 63 1.1.2.2 rmind { 64 1.1.2.2 rmind *(.sdata .sdata.* .gnu.linkonce.s.*) 65 1.1.2.2 rmind } 66 1.1.2.2 rmind _edata = .; PROVIDE (edata = .); 67 1.1.2.2 rmind __bss_start = .; 68 1.1.2.2 rmind .tocbss : ALIGN(8) { *(.tocbss)} 69 1.1.2.2 rmind .sbss : 70 1.1.2.2 rmind { 71 1.1.2.2 rmind *(.dynsbss) 72 1.1.2.2 rmind *(.sbss .sbss.* .gnu.linkonce.sb.*) 73 1.1.2.2 rmind *(.scommon) 74 1.1.2.2 rmind } 75 1.1.2.2 rmind .plt : { *(.plt) } 76 1.1.2.2 rmind .iplt : { *(.iplt) } 77 1.1.2.2 rmind .bss : 78 1.1.2.2 rmind { 79 1.1.2.2 rmind *(.dynbss) 80 1.1.2.2 rmind *(.bss .bss.* .gnu.linkonce.b.*) 81 1.1.2.2 rmind *(COMMON) 82 1.1.2.2 rmind /* Align here to ensure that the .bss section occupies space up to 83 1.1.2.2 rmind _end. Align after .bss to ensure correct alignment even if the 84 1.1.2.2 rmind .bss section disappears because there are no input sections. 85 1.1.2.2 rmind FIXME: Why do we need it? When there is no .bss section, we don't 86 1.1.2.2 rmind pad the .data section. */ 87 1.1.2.2 rmind . = ALIGN(. != 0 ? 64 / 8 : 1); 88 1.1.2.2 rmind } 89 1.1.2.2 rmind . = ALIGN(64 / 8); 90 1.1.2.2 rmind . = ALIGN(64 / 8); 91 1.1.2.2 rmind _end = .; PROVIDE (end = .); 92 1.1.2.2 rmind . = DATA_SEGMENT_END (.); 93 1.1.2.2 rmind /* Stabs debugging sections. */ 94 1.1.2.2 rmind .stab 0 : { *(.stab) } 95 1.1.2.2 rmind .stabstr 0 : { *(.stabstr) } 96 1.1.2.2 rmind .stab.excl 0 : { *(.stab.excl) } 97 1.1.2.2 rmind .stab.exclstr 0 : { *(.stab.exclstr) } 98 1.1.2.2 rmind .stab.index 0 : { *(.stab.index) } 99 1.1.2.2 rmind .stab.indexstr 0 : { *(.stab.indexstr) } 100 1.1.2.2 rmind .comment 0 : { *(.comment) } 101 1.1.2.2 rmind /* DWARF debug sections. 102 1.1.2.2 rmind Symbols in the DWARF debugging sections are relative to the beginning 103 1.1.2.2 rmind of the section so we begin them at 0. */ 104 1.1.2.2 rmind /* DWARF 1 */ 105 1.1.2.2 rmind .debug 0 : { *(.debug) } 106 1.1.2.2 rmind .line 0 : { *(.line) } 107 1.1.2.2 rmind /* GNU DWARF 1 extensions */ 108 1.1.2.2 rmind .debug_srcinfo 0 : { *(.debug_srcinfo) } 109 1.1.2.2 rmind .debug_sfnames 0 : { *(.debug_sfnames) } 110 1.1.2.2 rmind /* DWARF 1.1 and DWARF 2 */ 111 1.1.2.2 rmind .debug_aranges 0 : { *(.debug_aranges) } 112 1.1.2.2 rmind .debug_pubnames 0 : { *(.debug_pubnames) } 113 1.1.2.2 rmind /* DWARF 2 */ 114 1.1.2.2 rmind .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } 115 1.1.2.2 rmind .debug_abbrev 0 : { *(.debug_abbrev) } 116 1.1.2.2 rmind .debug_line 0 : { *(.debug_line) } 117 1.1.2.2 rmind .debug_frame 0 : { *(.debug_frame) } 118 1.1.2.2 rmind .debug_str 0 : { *(.debug_str) } 119 1.1.2.2 rmind .debug_loc 0 : { *(.debug_loc) } 120 1.1.2.2 rmind .debug_macinfo 0 : { *(.debug_macinfo) } 121 1.1.2.2 rmind /* SGI/MIPS DWARF 2 extensions */ 122 1.1.2.2 rmind .debug_weaknames 0 : { *(.debug_weaknames) } 123 1.1.2.2 rmind .debug_funcnames 0 : { *(.debug_funcnames) } 124 1.1.2.2 rmind .debug_typenames 0 : { *(.debug_typenames) } 125 1.1.2.2 rmind .debug_varnames 0 : { *(.debug_varnames) } 126 1.1.2.2 rmind /* DWARF 3 */ 127 1.1.2.2 rmind .debug_pubtypes 0 : { *(.debug_pubtypes) } 128 1.1.2.2 rmind .debug_ranges 0 : { *(.debug_ranges) } 129 1.1.2.2 rmind .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } 130 1.1.2.2 rmind /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } 131 1.1.2.2 rmind } 132