Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.19 KB | None | 0 0
  1. ld -dl
  2. GNU ld 2.17.50 [FreeBSD] 2007-07-03
  3. Supported emulations:
  4. elf_x86_64_fbsd
  5. elf_i386_fbsd
  6. using internal linker script:
  7. ==================================================
  8. /* Script for -z combreloc: combine and sort reloc sections */
  9. OUTPUT_FORMAT("elf64-x86-64-freebsd", "elf64-x86-64-freebsd",
  10. "elf64-x86-64-freebsd")
  11. OUTPUT_ARCH(i386:x86-64)
  12. ENTRY(_start)
  13. SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
  14. SECTIONS
  15. {
  16. /* Read-only sections, merged into text segment: */
  17. PROVIDE (__executable_start = 0x400000); . = 0x400000 + SIZEOF_HEADERS;
  18. .interp : { *(.interp) }
  19. .hash : { *(.hash) }
  20. .gnu.hash : { *(.gnu.hash) }
  21. .dynsym : { *(.dynsym) }
  22. .dynstr : { *(.dynstr) }
  23. .gnu.version : { *(.gnu.version) }
  24. .gnu.version_d : { *(.gnu.version_d) }
  25. .gnu.version_r : { *(.gnu.version_r) }
  26. .rel.dyn :
  27. {
  28. *(.rel.init)
  29. *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
  30. *(.rel.fini)
  31. *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
  32. *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*)
  33. *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
  34. *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
  35. *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
  36. *(.rel.ctors)
  37. *(.rel.dtors)
  38. *(.rel.got)
  39. *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
  40. *(.rel.ldata .rel.ldata.* .rel.gnu.linkonce.l.*)
  41. *(.rel.lbss .rel.lbss.* .rel.gnu.linkonce.lb.*)
  42. *(.rel.lrodata .rel.lrodata.* .rel.gnu.linkonce.lr.*)
  43. }
  44. .rela.dyn :
  45. {
  46. *(.rela.init)
  47. *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  48. *(.rela.fini)
  49. *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  50. *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  51. *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
  52. *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
  53. *(.rela.ctors)
  54. *(.rela.dtors)
  55. *(.rela.got)
  56. *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
  57. *(.rela.ldata .rela.ldata.* .rela.gnu.linkonce.l.*)
  58. *(.rela.lbss .rela.lbss.* .rela.gnu.linkonce.lb.*)
  59. *(.rela.lrodata .rela.lrodata.* .rela.gnu.linkonce.lr.*)
  60. }
  61. .rel.plt : { *(.rel.plt) }
  62. .rela.plt : { *(.rela.plt) }
  63. .init :
  64. {
  65. KEEP (*(.init))
  66. } =0xCCCCCCCC
  67. .plt : { *(.plt) }
  68. .text :
  69. {
  70. *(.text .stub .text.* .gnu.linkonce.t.*)
  71. KEEP (*(.text.*personality*))
  72. /* .gnu.warning sections are handled specially by elf32.em. */
  73. *(.gnu.warning)
  74. } =0xCCCCCCCC
  75. .fini :
  76. {
  77. KEEP (*(.fini))
  78. } =0xCCCCCCCC
  79. PROVIDE (__etext = .);
  80. PROVIDE (_etext = .);
  81. PROVIDE (etext = .);
  82. .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
  83. .rodata1 : { *(.rodata1) }
  84. .eh_frame_hdr : { *(.eh_frame_hdr) }
  85. .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  86. .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
  87. /* Adjust the address for the data segment. We want to adjust up to
  88. the same address within the page on the next page up. */
  89. . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
  90. /* Exception handling */
  91. .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
  92. .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
  93. /* Thread Local Storage sections */
  94. .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  95. .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  96. .preinit_array :
  97. {
  98. PROVIDE_HIDDEN (__preinit_array_start = .);
  99. KEEP (*(.preinit_array))
  100. PROVIDE_HIDDEN (__preinit_array_end = .);
  101. }
  102. .init_array :
  103. {
  104. PROVIDE_HIDDEN (__init_array_start = .);
  105. KEEP (*(SORT(.init_array.*)))
  106. KEEP (*(.init_array))
  107. PROVIDE_HIDDEN (__init_array_end = .);
  108. }
  109. .fini_array :
  110. {
  111. PROVIDE_HIDDEN (__fini_array_start = .);
  112. KEEP (*(SORT(.fini_array.*)))
  113. KEEP (*(.fini_array))
  114. PROVIDE_HIDDEN (__fini_array_end = .);
  115. }
  116. .ctors :
  117. {
  118. /* gcc uses crtbegin.o to find the start of
  119. the constructors, so we make sure it is
  120. first. Because this is a wildcard, it
  121. doesn't matter if the user does not
  122. actually link against crtbegin.o; the
  123. linker won't look for a file to match a
  124. wildcard. The wildcard also means that it
  125. doesn't matter which directory crtbegin.o
  126. is in. */
  127. KEEP (*crtbegin.o(.ctors))
  128. KEEP (*crtbegin?.o(.ctors))
  129. /* We don't want to include the .ctor section from
  130. the crtend.o file until after the sorted ctors.
  131. The .ctor section from the crtend file contains the
  132. end of ctors marker and it must be last */
  133. KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
  134. KEEP (*(SORT(.ctors.*)))
  135. KEEP (*(.ctors))
  136. }
  137. .dtors :
  138. {
  139. KEEP (*crtbegin.o(.dtors))
  140. KEEP (*crtbegin?.o(.dtors))
  141. KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
  142. KEEP (*(SORT(.dtors.*)))
  143. KEEP (*(.dtors))
  144. }
  145. .jcr : { KEEP (*(.jcr)) }
  146. .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
  147. .dynamic : { *(.dynamic) }
  148. .got : { *(.got) }
  149. . = DATA_SEGMENT_RELRO_END (24, .);
  150. .got.plt : { *(.got.plt) }
  151. .data :
  152. {
  153. *(.data .data.* .gnu.linkonce.d.*)
  154. KEEP (*(.gnu.linkonce.d.*personality*))
  155. SORT(CONSTRUCTORS)
  156. }
  157. .data1 : { *(.data1) }
  158. _edata = .; PROVIDE (edata = .);
  159. __bss_start = .;
  160. .bss :
  161. {
  162. *(.dynbss)
  163. *(.bss .bss.* .gnu.linkonce.b.*)
  164. *(COMMON)
  165. /* Align here to ensure that the .bss section occupies space up to
  166. _end. Align after .bss to ensure correct alignment even if the
  167. .bss section disappears because there are no input sections.
  168. FIXME: Why do we need it? When there is no .bss section, we don't
  169. pad the .data section. */
  170. . = ALIGN(. != 0 ? 64 / 8 : 1);
  171. }
  172. .lbss :
  173. {
  174. *(.dynlbss)
  175. *(.lbss .lbss.* .gnu.linkonce.lb.*)
  176. *(LARGE_COMMON)
  177. }
  178. . = ALIGN(64 / 8);
  179. .lrodata ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
  180. {
  181. *(.lrodata .lrodata.* .gnu.linkonce.lr.*)
  182. }
  183. .ldata ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
  184. {
  185. *(.ldata .ldata.* .gnu.linkonce.l.*)
  186. . = ALIGN(. != 0 ? 64 / 8 : 1);
  187. }
  188. . = ALIGN(64 / 8);
  189. _end = .; PROVIDE (end = .);
  190. . = DATA_SEGMENT_END (.);
  191. /* Stabs debugging sections. */
  192. .stab 0 : { *(.stab) }
  193. .stabstr 0 : { *(.stabstr) }
  194. .stab.excl 0 : { *(.stab.excl) }
  195. .stab.exclstr 0 : { *(.stab.exclstr) }
  196. .stab.index 0 : { *(.stab.index) }
  197. .stab.indexstr 0 : { *(.stab.indexstr) }
  198. .comment 0 : { *(.comment) }
  199. /* DWARF debug sections.
  200. Symbols in the DWARF debugging sections are relative to the beginning
  201. of the section so we begin them at 0. */
  202. /* DWARF 1 */
  203. .debug 0 : { *(.debug) }
  204. .line 0 : { *(.line) }
  205. /* GNU DWARF 1 extensions */
  206. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  207. .debug_sfnames 0 : { *(.debug_sfnames) }
  208. /* DWARF 1.1 and DWARF 2 */
  209. .debug_aranges 0 : { *(.debug_aranges) }
  210. .debug_pubnames 0 : { *(.debug_pubnames) }
  211. /* DWARF 2 */
  212. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  213. .debug_abbrev 0 : { *(.debug_abbrev) }
  214. .debug_line 0 : { *(.debug_line) }
  215. .debug_frame 0 : { *(.debug_frame) }
  216. .debug_str 0 : { *(.debug_str) }
  217. .debug_loc 0 : { *(.debug_loc) }
  218. .debug_macinfo 0 : { *(.debug_macinfo) }
  219. /* SGI/MIPS DWARF 2 extensions */
  220. .debug_weaknames 0 : { *(.debug_weaknames) }
  221. .debug_funcnames 0 : { *(.debug_funcnames) }
  222. .debug_typenames 0 : { *(.debug_typenames) }
  223. .debug_varnames 0 : { *(.debug_varnames) }
  224. /* DWARF 3 */
  225. .debug_pubtypes 0 : { *(.debug_pubtypes) }
  226. .debug_ranges 0 : { *(.debug_ranges) }
  227. .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
  228. /DISCARD/ : { *(.note.GNU-stack) }
  229. }
  230.  
  231.  
  232. ==================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement