Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 8 | pmbaty | 1 | GNU ld (GNU Binutils) 2.41.0 20230730 [EXPERIMENTAL qnx800 r1743] |
| 2 | Supported emulations: |
||
| 3 | aarch64nto |
||
| 4 | aarch64elf |
||
| 5 | aarch64elf32 |
||
| 6 | aarch64elf32b |
||
| 7 | aarch64elfb |
||
| 8 | armelf |
||
| 9 | armelfb |
||
| 10 | using internal linker script: |
||
| 11 | ================================================== |
||
| 12 | /* Script for -z combreloc */ |
||
| 13 | /* Copyright (C) 2014-2023 Free Software Foundation, Inc. |
||
| 14 | Copying and distribution of this script, with or without modification, |
||
| 15 | are permitted in any medium without royalty provided the copyright |
||
| 16 | notice and this notice are preserved. */ |
||
| 17 | OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", |
||
| 18 | "elf64-littleaarch64") |
||
| 19 | OUTPUT_ARCH(aarch64) |
||
| 20 | ENTRY(_start) |
||
| 21 | SEARCH_DIR("=/opt/qnx800/host/linux/x86_64/usr/aarch64-unknown-nto-qnx8.0.0/lib"); |
||
| 22 | SEARCH_DIR("=/usr/local/lib"); |
||
| 23 | SEARCH_DIR("=/lib"); |
||
| 24 | SEARCH_DIR("=/usr/lib"); |
||
| 25 | SECTIONS |
||
| 26 | { |
||
| 27 | /* Read-only sections, merged into text segment: */ |
||
| 28 | PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x400000)); . = SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS; |
||
| 29 | .interp : { *(.interp) } |
||
| 30 | .note.gnu.build-id : { *(.note.gnu.build-id) } |
||
| 31 | .hash : { *(.hash) } |
||
| 32 | .gnu.hash : { *(.gnu.hash) } |
||
| 33 | .dynsym : { *(.dynsym) } |
||
| 34 | .dynstr : { *(.dynstr) } |
||
| 35 | .gnu.version : { *(.gnu.version) } |
||
| 36 | .gnu.version_d : { *(.gnu.version_d) } |
||
| 37 | .gnu.version_r : { *(.gnu.version_r) } |
||
| 38 | .rela.dyn : |
||
| 39 | { |
||
| 40 | *(.rela.init) |
||
| 41 | *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) |
||
| 42 | *(.rela.fini) |
||
| 43 | *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) |
||
| 44 | *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) |
||
| 45 | *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) |
||
| 46 | *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) |
||
| 47 | *(.rela.ctors) |
||
| 48 | *(.rela.dtors) |
||
| 49 | *(.rela.got) |
||
| 50 | *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) |
||
| 51 | *(.rela.ifunc) |
||
| 52 | } |
||
| 53 | .rela.plt : |
||
| 54 | { |
||
| 55 | *(.rela.plt) |
||
| 56 | PROVIDE_HIDDEN (__rela_iplt_start = .); |
||
| 57 | *(.rela.iplt) |
||
| 58 | PROVIDE_HIDDEN (__rela_iplt_end = .); |
||
| 59 | } |
||
| 60 | .init : |
||
| 61 | { |
||
| 62 | KEEP (*(SORT_NONE(.init))) |
||
| 63 | } =0 |
||
| 64 | .plt : ALIGN(16) { *(.plt) *(.iplt) } |
||
| 65 | .text : |
||
| 66 | { |
||
| 67 | _btext = .; |
||
| 68 | *(.text.unlikely .text.*_unlikely .text.unlikely.*) |
||
| 69 | *(.text.exit .text.exit.*) |
||
| 70 | *(.text.startup .text.startup.*) |
||
| 71 | *(.text.hot .text.hot.*) |
||
| 72 | *(SORT(.text.sorted.*)) |
||
| 73 | *(.text .stub .text.* .gnu.linkonce.t.*) |
||
| 74 | /* .gnu.warning sections are handled specially by elf.em. */ |
||
| 75 | *(.gnu.warning) |
||
| 76 | } =0 |
||
| 77 | .fini : |
||
| 78 | { |
||
| 79 | KEEP (*(SORT_NONE(.fini))) |
||
| 80 | } =0 |
||
| 81 | PROVIDE (__etext = .); |
||
| 82 | PROVIDE (_etext = .); |
||
| 83 | PROVIDE (etext = .); |
||
| 84 | .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } |
||
| 85 | .rodata1 : { *(.rodata1) } |
||
| 86 | .eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) } |
||
| 87 | .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) *(.eh_frame.*) } |
||
| 88 | .sframe : ONLY_IF_RO { *(.sframe) *(.sframe.*) } |
||
| 89 | .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) } |
||
| 90 | .gnu_extab : ONLY_IF_RO { *(.gnu_extab*) } |
||
| 91 | /* These sections are generated by the Sun/Oracle C++ compiler. */ |
||
| 92 | .exception_ranges : ONLY_IF_RO { *(.exception_ranges*) } |
||
| 93 | /* Adjust the address for the data segment. We want to adjust up to |
||
| 94 | the same address within the page on the next page up. */ |
||
| 95 | . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE)); |
||
| 96 | /* Exception handling */ |
||
| 97 | .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) *(.eh_frame.*) } |
||
| 98 | .sframe : ONLY_IF_RW { *(.sframe) *(.sframe.*) } |
||
| 99 | .gnu_extab : ONLY_IF_RW { *(.gnu_extab) } |
||
| 100 | .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) } |
||
| 101 | .exception_ranges : ONLY_IF_RW { *(.exception_ranges*) } |
||
| 102 | /* Thread Local Storage sections */ |
||
| 103 | .tdata : |
||
| 104 | { |
||
| 105 | PROVIDE_HIDDEN (__tdata_start = .); |
||
| 106 | *(.tdata .tdata.* .gnu.linkonce.td.*) |
||
| 107 | } |
||
| 108 | .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } |
||
| 109 | .preinit_array : |
||
| 110 | { |
||
| 111 | PROVIDE_HIDDEN (__preinit_array_start = .); |
||
| 112 | KEEP (*(.preinit_array)) |
||
| 113 | PROVIDE_HIDDEN (__preinit_array_end = .); |
||
| 114 | } |
||
| 115 | .init_array : |
||
| 116 | { |
||
| 117 | PROVIDE_HIDDEN (__init_array_start = .); |
||
| 118 | KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) |
||
| 119 | KEEP (*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors)) |
||
| 120 | PROVIDE_HIDDEN (__init_array_end = .); |
||
| 121 | } |
||
| 122 | .fini_array : |
||
| 123 | { |
||
| 124 | PROVIDE_HIDDEN (__fini_array_start = .); |
||
| 125 | KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) |
||
| 126 | KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors)) |
||
| 127 | PROVIDE_HIDDEN (__fini_array_end = .); |
||
| 128 | } |
||
| 129 | .ctors : |
||
| 130 | { |
||
| 131 | /* gcc uses crtbegin.o to find the start of |
||
| 132 | the constructors, so we make sure it is |
||
| 133 | first. Because this is a wildcard, it |
||
| 134 | doesn't matter if the user does not |
||
| 135 | actually link against crtbegin.o; the |
||
| 136 | linker won't look for a file to match a |
||
| 137 | wildcard. The wildcard also means that it |
||
| 138 | doesn't matter which directory crtbegin.o |
||
| 139 | is in. */ |
||
| 140 | KEEP (*crtbegin.o(.ctors)) |
||
| 141 | KEEP (*crtbegin?.o(.ctors)) |
||
| 142 | /* We don't want to include the .ctor section from |
||
| 143 | the crtend.o file until after the sorted ctors. |
||
| 144 | The .ctor section from the crtend file contains the |
||
| 145 | end of ctors marker and it must be last */ |
||
| 146 | KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors)) |
||
| 147 | KEEP (*(SORT(.ctors.*))) |
||
| 148 | KEEP (*(.ctors)) |
||
| 149 | } |
||
| 150 | .dtors : |
||
| 151 | { |
||
| 152 | KEEP (*crtbegin.o(.dtors)) |
||
| 153 | KEEP (*crtbegin?.o(.dtors)) |
||
| 154 | KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors)) |
||
| 155 | KEEP (*(SORT(.dtors.*))) |
||
| 156 | KEEP (*(.dtors)) |
||
| 157 | } |
||
| 158 | .jcr : { KEEP (*(.jcr)) } |
||
| 159 | .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro .data.rel.ro.* .gnu.linkonce.d.rel.ro.*) } |
||
| 160 | .dynamic : { *(.dynamic) } |
||
| 161 | .got : { *(.got) *(.igot) } |
||
| 162 | . = DATA_SEGMENT_RELRO_END (SIZEOF (.got.plt) >= 24 ? 24 : 0, .); |
||
| 163 | .got.plt : { *(.got.plt) *(.igot.plt) } |
||
| 164 | .data : |
||
| 165 | { |
||
| 166 | __data_start = .; |
||
| 167 | *(.data .data.* .gnu.linkonce.d.*) |
||
| 168 | SORT(CONSTRUCTORS) |
||
| 169 | } |
||
| 170 | .data1 : { *(.data1) } |
||
| 171 | _edata = .; PROVIDE (edata = .); |
||
| 172 | . = .; |
||
| 173 | __bss_start = .; |
||
| 174 | __bss_start__ = .; |
||
| 175 | .bss : |
||
| 176 | { |
||
| 177 | *(.dynbss) |
||
| 178 | *(.bss .bss.* .gnu.linkonce.b.*) |
||
| 179 | *(COMMON) |
||
| 180 | /* Align here to ensure that the .bss section occupies space up to |
||
| 181 | _end. Align after .bss to ensure correct alignment even if the |
||
| 182 | .bss section disappears because there are no input sections. |
||
| 183 | FIXME: Why do we need it? When there is no .bss section, we do not |
||
| 184 | pad the .data section. */ |
||
| 185 | . = ALIGN(. != 0 ? 64 / 8 : 1); |
||
| 186 | } |
||
| 187 | _bss_end__ = .; __bss_end__ = .; |
||
| 188 | . = ALIGN(64 / 8); |
||
| 189 | . = SEGMENT_START("ldata-segment", .); |
||
| 190 | . = ALIGN(64 / 8); |
||
| 191 | __end__ = .; |
||
| 192 | _end = .; PROVIDE (end = .); |
||
| 193 | . = DATA_SEGMENT_END (.); |
||
| 194 | /* Stabs debugging sections. */ |
||
| 195 | .stab 0 : { *(.stab) } |
||
| 196 | .stabstr 0 : { *(.stabstr) } |
||
| 197 | .stab.excl 0 : { *(.stab.excl) } |
||
| 198 | .stab.exclstr 0 : { *(.stab.exclstr) } |
||
| 199 | .stab.index 0 : { *(.stab.index) } |
||
| 200 | .stab.indexstr 0 : { *(.stab.indexstr) } |
||
| 201 | .comment 0 (INFO) : { *(.comment); LINKER_VERSION; } |
||
| 202 | .gnu.build.attributes : { *(.gnu.build.attributes .gnu.build.attributes.*) } |
||
| 203 | /* DWARF debug sections. |
||
| 204 | Symbols in the DWARF debugging sections are relative to the beginning |
||
| 205 | of the section so we begin them at 0. */ |
||
| 206 | /* DWARF 1. */ |
||
| 207 | .debug 0 : { *(.debug) } |
||
| 208 | .line 0 : { *(.line) } |
||
| 209 | /* GNU DWARF 1 extensions. */ |
||
| 210 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
||
| 211 | .debug_sfnames 0 : { *(.debug_sfnames) } |
||
| 212 | /* DWARF 1.1 and DWARF 2. */ |
||
| 213 | .debug_aranges 0 : { *(.debug_aranges) } |
||
| 214 | .debug_pubnames 0 : { *(.debug_pubnames) } |
||
| 215 | /* DWARF 2. */ |
||
| 216 | .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } |
||
| 217 | .debug_abbrev 0 : { *(.debug_abbrev) } |
||
| 218 | .debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end) } |
||
| 219 | .debug_frame 0 : { *(.debug_frame) } |
||
| 220 | .debug_str 0 : { *(.debug_str) } |
||
| 221 | .debug_loc 0 : { *(.debug_loc) } |
||
| 222 | .debug_macinfo 0 : { *(.debug_macinfo) } |
||
| 223 | /* SGI/MIPS DWARF 2 extensions. */ |
||
| 224 | .debug_weaknames 0 : { *(.debug_weaknames) } |
||
| 225 | .debug_funcnames 0 : { *(.debug_funcnames) } |
||
| 226 | .debug_typenames 0 : { *(.debug_typenames) } |
||
| 227 | .debug_varnames 0 : { *(.debug_varnames) } |
||
| 228 | /* DWARF 3. */ |
||
| 229 | .debug_pubtypes 0 : { *(.debug_pubtypes) } |
||
| 230 | .debug_ranges 0 : { *(.debug_ranges) } |
||
| 231 | /* DWARF 5. */ |
||
| 232 | .debug_addr 0 : { *(.debug_addr) } |
||
| 233 | .debug_line_str 0 : { *(.debug_line_str) } |
||
| 234 | .debug_loclists 0 : { *(.debug_loclists) } |
||
| 235 | .debug_macro 0 : { *(.debug_macro) } |
||
| 236 | .debug_names 0 : { *(.debug_names) } |
||
| 237 | .debug_rnglists 0 : { *(.debug_rnglists) } |
||
| 238 | .debug_str_offsets 0 : { *(.debug_str_offsets) } |
||
| 239 | .debug_sup 0 : { *(.debug_sup) } |
||
| 240 | .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) } |
||
| 241 | .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } |
||
| 242 | /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } |
||
| 243 | } |
||
| 244 | |||
| 245 | |||
| 246 | ================================================== |