Advertisement
Guest User

Untitled

a guest
Jan 15th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.31 KB | None | 0 0
  1. ld -lpixman-1 --verbose
  2. GNU ld (GNU Binutils) 2.33.1
  3. Supported emulations:
  4. aarch64linux
  5. aarch64elf
  6. aarch64elf32
  7. aarch64elf32b
  8. aarch64elfb
  9. armelf
  10. armelfb
  11. aarch64linuxb
  12. aarch64linux32
  13. aarch64linux32b
  14. armelfb_linux_eabi
  15. armelf_linux_eabi
  16. using internal linker script:
  17. ==================================================
  18. /* Script for -z combreloc: combine and sort reloc sections */
  19. /* Copyright (C) 2014-2019 Free Software Foundation, Inc.
  20. Copying and distribution of this script, with or without modification,
  21. are permitted in any medium without royalty provided the copyright
  22. notice and this notice are preserved. */
  23. OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64",
  24. "elf64-littleaarch64")
  25. OUTPUT_ARCH(aarch64)
  26. ENTRY(_start)
  27. SEARCH_DIR("/usr/aarch64-unknown-linux-gnu/lib64"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/usr/aarch64-unknown-linux-gnu/lib");
  28. SECTIONS
  29. {
  30. /* Read-only sections, merged into text segment: */
  31. PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x400000)); . = SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS;
  32. .interp : { *(.interp) }
  33. .note.gnu.build-id : { *(.note.gnu.build-id) }
  34. .hash : { *(.hash) }
  35. .gnu.hash : { *(.gnu.hash) }
  36. .dynsym : { *(.dynsym) }
  37. .dynstr : { *(.dynstr) }
  38. .gnu.version : { *(.gnu.version) }
  39. .gnu.version_d : { *(.gnu.version_d) }
  40. .gnu.version_r : { *(.gnu.version_r) }
  41. .rela.dyn :
  42. {
  43. *(.rela.init)
  44. *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  45. *(.rela.fini)
  46. *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  47. *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  48. *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
  49. *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
  50. *(.rela.ctors)
  51. *(.rela.dtors)
  52. *(.rela.got)
  53. *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
  54. *(.rela.ifunc)
  55. }
  56. .rela.plt :
  57. {
  58. *(.rela.plt)
  59. PROVIDE_HIDDEN (__rela_iplt_start = .);
  60. *(.rela.iplt)
  61. PROVIDE_HIDDEN (__rela_iplt_end = .);
  62. }
  63. .init :
  64. {
  65. KEEP (*(SORT_NONE(.init)))
  66. } =0x1f2003d5
  67. .plt : ALIGN(16) { *(.plt) *(.iplt) }
  68. .text :
  69. {
  70. *(.text.unlikely .text.*_unlikely .text.unlikely.*)
  71. *(.text.exit .text.exit.*)
  72. *(.text.startup .text.startup.*)
  73. *(.text.hot .text.hot.*)
  74. *(.text .stub .text.* .gnu.linkonce.t.*)
  75. /* .gnu.warning sections are handled specially by elf32.em. */
  76. *(.gnu.warning)
  77. } =0x1f2003d5
  78. .fini :
  79. {
  80. KEEP (*(SORT_NONE(.fini)))
  81. } =0x1f2003d5
  82. PROVIDE (__etext = .);
  83. PROVIDE (_etext = .);
  84. PROVIDE (etext = .);
  85. .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
  86. .rodata1 : { *(.rodata1) }
  87. .eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
  88. .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) *(.eh_frame.*) }
  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. .gnu_extab : ONLY_IF_RW { *(.gnu_extab) }
  99. .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
  100. .exception_ranges : ONLY_IF_RW { *(.exception_ranges*) }
  101. /* Thread Local Storage sections */
  102. .tdata :
  103. {
  104. PROVIDE_HIDDEN (__tdata_start = .);
  105. *(.tdata .tdata.* .gnu.linkonce.td.*)
  106. }
  107. .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  108. .preinit_array :
  109. {
  110. PROVIDE_HIDDEN (__preinit_array_start = .);
  111. KEEP (*(.preinit_array))
  112. PROVIDE_HIDDEN (__preinit_array_end = .);
  113. }
  114. .init_array :
  115. {
  116. PROVIDE_HIDDEN (__init_array_start = .);
  117. KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
  118. KEEP (*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors))
  119. PROVIDE_HIDDEN (__init_array_end = .);
  120. }
  121. .fini_array :
  122. {
  123. PROVIDE_HIDDEN (__fini_array_start = .);
  124. KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
  125. KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors))
  126. PROVIDE_HIDDEN (__fini_array_end = .);
  127. }
  128. .ctors :
  129. {
  130. /* gcc uses crtbegin.o to find the start of
  131. the constructors, so we make sure it is
  132. first. Because this is a wildcard, it
  133. doesn't matter if the user does not
  134. actually link against crtbegin.o; the
  135. linker won't look for a file to match a
  136. wildcard. The wildcard also means that it
  137. doesn't matter which directory crtbegin.o
  138. is in. */
  139. KEEP (*crtbegin.o(.ctors))
  140. KEEP (*crtbegin?.o(.ctors))
  141. /* We don't want to include the .ctor section from
  142. the crtend.o file until after the sorted ctors.
  143. The .ctor section from the crtend file contains the
  144. end of ctors marker and it must be last */
  145. KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
  146. KEEP (*(SORT(.ctors.*)))
  147. KEEP (*(.ctors))
  148. }
  149. .dtors :
  150. {
  151. KEEP (*crtbegin.o(.dtors))
  152. KEEP (*crtbegin?.o(.dtors))
  153. KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
  154. KEEP (*(SORT(.dtors.*)))
  155. KEEP (*(.dtors))
  156. }
  157. .jcr : { KEEP (*(.jcr)) }
  158. .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro .data.rel.ro.* .gnu.linkonce.d.rel.ro.*) }
  159. .dynamic : { *(.dynamic) }
  160. .got : { *(.got) *(.igot) }
  161. . = DATA_SEGMENT_RELRO_END (24, .);
  162. .got.plt : { *(.got.plt) *(.igot.plt) }
  163. .data :
  164. {
  165. PROVIDE (__data_start = .);
  166. *(.data .data.* .gnu.linkonce.d.*)
  167. SORT(CONSTRUCTORS)
  168. }
  169. .data1 : { *(.data1) }
  170. _edata = .; PROVIDE (edata = .);
  171. . = .;
  172. __bss_start = .;
  173. __bss_start__ = .;
  174. .bss :
  175. {
  176. *(.dynbss)
  177. *(.bss .bss.* .gnu.linkonce.b.*)
  178. *(COMMON)
  179. /* Align here to ensure that the .bss section occupies space up to
  180. _end. Align after .bss to ensure correct alignment even if the
  181. .bss section disappears because there are no input sections.
  182. FIXME: Why do we need it? When there is no .bss section, we do not
  183. pad the .data section. */
  184. . = ALIGN(. != 0 ? 64 / 8 : 1);
  185. }
  186. _bss_end__ = .; __bss_end__ = .;
  187. . = ALIGN(64 / 8);
  188. . = SEGMENT_START("ldata-segment", .);
  189. . = ALIGN(64 / 8);
  190. __end__ = .;
  191. _end = .; PROVIDE (end = .);
  192. . = DATA_SEGMENT_END (.);
  193. /* Stabs debugging sections. */
  194. .stab 0 : { *(.stab) }
  195. .stabstr 0 : { *(.stabstr) }
  196. .stab.excl 0 : { *(.stab.excl) }
  197. .stab.exclstr 0 : { *(.stab.exclstr) }
  198. .stab.index 0 : { *(.stab.index) }
  199. .stab.indexstr 0 : { *(.stab.indexstr) }
  200. .comment 0 : { *(.comment) }
  201. .gnu.build.attributes : { *(.gnu.build.attributes .gnu.build.attributes.*) }
  202. /* DWARF debug sections.
  203. Symbols in the DWARF debugging sections are relative to the beginning
  204. of the section so we begin them at 0. */
  205. /* DWARF 1 */
  206. .debug 0 : { *(.debug) }
  207. .line 0 : { *(.line) }
  208. /* GNU DWARF 1 extensions */
  209. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  210. .debug_sfnames 0 : { *(.debug_sfnames) }
  211. /* DWARF 1.1 and DWARF 2 */
  212. .debug_aranges 0 : { *(.debug_aranges) }
  213. .debug_pubnames 0 : { *(.debug_pubnames) }
  214. /* DWARF 2 */
  215. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  216. .debug_abbrev 0 : { *(.debug_abbrev) }
  217. .debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end) }
  218. .debug_frame 0 : { *(.debug_frame) }
  219. .debug_str 0 : { *(.debug_str) }
  220. .debug_loc 0 : { *(.debug_loc) }
  221. .debug_macinfo 0 : { *(.debug_macinfo) }
  222. /* SGI/MIPS DWARF 2 extensions */
  223. .debug_weaknames 0 : { *(.debug_weaknames) }
  224. .debug_funcnames 0 : { *(.debug_funcnames) }
  225. .debug_typenames 0 : { *(.debug_typenames) }
  226. .debug_varnames 0 : { *(.debug_varnames) }
  227. /* DWARF 3 */
  228. .debug_pubtypes 0 : { *(.debug_pubtypes) }
  229. .debug_ranges 0 : { *(.debug_ranges) }
  230. /* DWARF Extension. */
  231. .debug_macro 0 : { *(.debug_macro) }
  232. .debug_addr 0 : { *(.debug_addr) }
  233. .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
  234. .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
  235. /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
  236. }
  237.  
  238.  
  239. ==================================================
  240. ld: mode aarch64linux
  241. attempt to open /usr/aarch64-unknown-linux-gnu/lib64/libpixman-1.so failed
  242. attempt to open /usr/aarch64-unknown-linux-gnu/lib64/libpixman-1.a failed
  243. attempt to open /usr/lib/libpixman-1.so succeeded
  244. /usr/lib/libpixman-1.so
  245. libm.so.6 needed by /usr/lib/libpixman-1.so
  246. attempt to open /usr/lib/libfakeroot/libm.so.6 failed
  247. attempt to open /usr/aarch64-unknown-linux-gnu/lib64/libm.so.6 failed
  248. found libm.so.6 at /usr/lib/libm.so.6
  249. libpthread.so.0 needed by /usr/lib/libpixman-1.so
  250. attempt to open /usr/lib/libfakeroot/libpthread.so.0 failed
  251. attempt to open /usr/aarch64-unknown-linux-gnu/lib64/libpthread.so.0 failed
  252. found libpthread.so.0 at /usr/lib/libpthread.so.0
  253. libc.so.6 needed by /usr/lib/libpixman-1.so
  254. attempt to open /usr/lib/libfakeroot/libc.so.6 failed
  255. attempt to open /usr/aarch64-unknown-linux-gnu/lib64/libc.so.6 failed
  256. attempt to open /usr/local/lib/libc.so.6 failed
  257. attempt to open /usr/aarch64-unknown-linux-gnu/lib/libc.so.6 failed
  258. attempt to open /usr/lib/libfakeroot/libc.so.6 failed
  259. attempt to open /usr/aarch64-unknown-linux-gnu/lib64/libc.so.6 failed
  260. found libc.so.6 at /usr/lib/libc.so.6
  261. ld-linux-aarch64.so.1 needed by /usr/lib/libpixman-1.so
  262. attempt to open /usr/lib/libfakeroot/ld-linux-aarch64.so.1 failed
  263. attempt to open /usr/aarch64-unknown-linux-gnu/lib64/ld-linux-aarch64.so.1 failed
  264. found ld-linux-aarch64.so.1 at /usr/lib/ld-linux-aarch64.so.1
  265. ld: warning: cannot find entry symbol _start; not setting start address
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement