Advertisement
Guest User

Untitled

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