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