symbian-qemu-0.9.1-12/qemu-symbian-svp/s390.ld
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 OUTPUT_FORMAT("elf32-s390", "elf32-s390",
       
     2 	      "elf32-s390")
       
     3 OUTPUT_ARCH(s390:31-bit)
       
     4 ENTRY(_start)
       
     5 SEARCH_DIR("/usr/s390-redhat-linux/lib"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib");
       
     6 /* Do we need any of these for elf?
       
     7    __DYNAMIC = 0;    */
       
     8 SECTIONS
       
     9 {
       
    10   /* Reserve a chunk of memory at a low address to prevent the host ld.so
       
    11      loading shared libraries where we want to put the target application.  */
       
    12   . = 0x10000;
       
    13   .reserved : { *(.reserved) }
       
    14   /* Read-only sections, merged into text segment: */
       
    15   /* Older linkers can't add an extra program header for .reserved when
       
    16      SIZEOF_HEADERS is user.  Instead leave a chunk of space for them.  */
       
    17   . = 0x60000000 + 0x10000 /*SIZEOF_HEADERS*/;
       
    18   .interp         : { *(.interp) }
       
    19   .hash           : { *(.hash) }
       
    20   .dynsym         : { *(.dynsym) }
       
    21   .dynstr         : { *(.dynstr) }
       
    22   .gnu.version    : { *(.gnu.version) }
       
    23   .gnu.version_d  : { *(.gnu.version_d) }
       
    24   .gnu.version_r  : { *(.gnu.version_r) }
       
    25   .rel.dyn        :
       
    26     {
       
    27       *(.rel.init)
       
    28       *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
       
    29       *(.rel.fini)
       
    30       *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
       
    31       *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
       
    32       *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
       
    33       *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
       
    34       *(.rel.ctors)
       
    35       *(.rel.dtors)
       
    36       *(.rel.got)
       
    37       *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*)
       
    38       *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*)
       
    39       *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*)
       
    40       *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*)
       
    41       *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
       
    42     }
       
    43   .rela.dyn       :
       
    44     {
       
    45       *(.rela.init)
       
    46       *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
       
    47       *(.rela.fini)
       
    48       *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
       
    49       *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
       
    50       *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
       
    51       *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
       
    52       *(.rela.ctors)
       
    53       *(.rela.dtors)
       
    54       *(.rela.got)
       
    55       *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*)
       
    56       *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*)
       
    57       *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*)
       
    58       *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*)
       
    59       *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
       
    60     }
       
    61   .rel.plt        : { *(.rel.plt) }
       
    62   .rela.plt       : { *(.rela.plt) }
       
    63   .init           :
       
    64   {
       
    65     KEEP (*(.init))
       
    66   } =0x07070707
       
    67   .plt            : { *(.plt) }
       
    68   .text           :
       
    69   {
       
    70     *(.text .stub .text.* .gnu.linkonce.t.*)
       
    71     /* .gnu.warning sections are handled specially by elf32.em.  */
       
    72     *(.gnu.warning)
       
    73   } =0x07070707
       
    74   .fini           :
       
    75   {
       
    76     KEEP (*(.fini))
       
    77   } =0x07070707
       
    78   PROVIDE (__etext = .);
       
    79   PROVIDE (_etext = .);
       
    80   PROVIDE (etext = .);
       
    81   .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
       
    82   .rodata1        : { *(.rodata1) }
       
    83   .sdata2         : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) }
       
    84   .sbss2          : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
       
    85   .eh_frame_hdr : { *(.eh_frame_hdr) }
       
    86   /* Adjust the address for the data segment.  We want to adjust up to
       
    87      the same address within the page on the next page up.  */
       
    88   . = ALIGN(0x1000) + (. & (0x1000 - 1));
       
    89   /* Ensure the __preinit_array_start label is properly aligned.  We
       
    90      could instead move the label definition inside the section, but
       
    91      the linker would then create the section even if it turns out to
       
    92      be empty, which isn't pretty.  */
       
    93   . = ALIGN(32 / 8);
       
    94   PROVIDE (__preinit_array_start = .);
       
    95   .preinit_array     : { *(.preinit_array) }
       
    96   PROVIDE (__preinit_array_end = .);
       
    97   PROVIDE (__init_array_start = .);
       
    98   .init_array     : { *(.init_array) }
       
    99   PROVIDE (__init_array_end = .);
       
   100   PROVIDE (__fini_array_start = .);
       
   101   .fini_array     : { *(.fini_array) }
       
   102   PROVIDE (__fini_array_end = .);
       
   103   .data           :
       
   104   {
       
   105     *(.data .data.* .gnu.linkonce.d.*)
       
   106     SORT(CONSTRUCTORS)
       
   107   }
       
   108   .data1          : { *(.data1) }
       
   109   .tdata	  : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
       
   110   .tbss		  : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
       
   111   .eh_frame       : { KEEP (*(.eh_frame)) }
       
   112   .gcc_except_table   : { *(.gcc_except_table) }
       
   113   .dynamic        : { *(.dynamic) }
       
   114   .ctors          :
       
   115   {
       
   116     /* gcc uses crtbegin.o to find the start of
       
   117        the constructors, so we make sure it is
       
   118        first.  Because this is a wildcard, it
       
   119        doesn't matter if the user does not
       
   120        actually link against crtbegin.o; the
       
   121        linker won't look for a file to match a
       
   122        wildcard.  The wildcard also means that it
       
   123        doesn't matter which directory crtbegin.o
       
   124        is in.  */
       
   125     KEEP (*crtbegin.o(.ctors))
       
   126     /* We don't want to include the .ctor section from
       
   127        from the crtend.o file until after the sorted ctors.
       
   128        The .ctor section from the crtend file contains the
       
   129        end of ctors marker and it must be last */
       
   130     KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
       
   131     KEEP (*(SORT(.ctors.*)))
       
   132     KEEP (*(.ctors))
       
   133   }
       
   134   .dtors          :
       
   135   {
       
   136     KEEP (*crtbegin.o(.dtors))
       
   137     KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
       
   138     KEEP (*(SORT(.dtors.*)))
       
   139     KEEP (*(.dtors))
       
   140   }
       
   141   .jcr            : { KEEP (*(.jcr)) }
       
   142   .got            : { *(.got.plt) *(.got) }
       
   143   /* We want the small data sections together, so single-instruction offsets
       
   144      can access them all, and initialized data all before uninitialized, so
       
   145      we can shorten the on-disk segment size.  */
       
   146   .sdata          :
       
   147   {
       
   148     *(.sdata .sdata.* .gnu.linkonce.s.*)
       
   149   }
       
   150   _edata = .;
       
   151   PROVIDE (edata = .);
       
   152   __bss_start = .;
       
   153   .sbss           :
       
   154   {
       
   155     PROVIDE (__sbss_start = .);
       
   156     PROVIDE (___sbss_start = .);
       
   157     *(.dynsbss)
       
   158     *(.sbss .sbss.* .gnu.linkonce.sb.*)
       
   159     *(.scommon)
       
   160     PROVIDE (__sbss_end = .);
       
   161     PROVIDE (___sbss_end = .);
       
   162   }
       
   163   .bss            :
       
   164   {
       
   165    *(.dynbss)
       
   166    *(.bss .bss.* .gnu.linkonce.b.*)
       
   167    *(COMMON)
       
   168    /* Align here to ensure that the .bss section occupies space up to
       
   169       _end.  Align after .bss to ensure correct alignment even if the
       
   170       .bss section disappears because there are no input sections.  */
       
   171    . = ALIGN(32 / 8);
       
   172   }
       
   173   . = ALIGN(32 / 8);
       
   174   _end = .;
       
   175   PROVIDE (end = .);
       
   176   /* Stabs debugging sections.  */
       
   177   .stab          0 : { *(.stab) }
       
   178   .stabstr       0 : { *(.stabstr) }
       
   179   .stab.excl     0 : { *(.stab.excl) }
       
   180   .stab.exclstr  0 : { *(.stab.exclstr) }
       
   181   .stab.index    0 : { *(.stab.index) }
       
   182   .stab.indexstr 0 : { *(.stab.indexstr) }
       
   183   .comment       0 : { *(.comment) }
       
   184   /* DWARF debug sections.
       
   185      Symbols in the DWARF debugging sections are relative to the beginning
       
   186      of the section so we begin them at 0.  */
       
   187   /* DWARF 1 */
       
   188   .debug          0 : { *(.debug) }
       
   189   .line           0 : { *(.line) }
       
   190   /* GNU DWARF 1 extensions */
       
   191   .debug_srcinfo  0 : { *(.debug_srcinfo) }
       
   192   .debug_sfnames  0 : { *(.debug_sfnames) }
       
   193   /* DWARF 1.1 and DWARF 2 */
       
   194   .debug_aranges  0 : { *(.debug_aranges) }
       
   195   .debug_pubnames 0 : { *(.debug_pubnames) }
       
   196   /* DWARF 2 */
       
   197   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
       
   198   .debug_abbrev   0 : { *(.debug_abbrev) }
       
   199   .debug_line     0 : { *(.debug_line) }
       
   200   .debug_frame    0 : { *(.debug_frame) }
       
   201   .debug_str      0 : { *(.debug_str) }
       
   202   .debug_loc      0 : { *(.debug_loc) }
       
   203   .debug_macinfo  0 : { *(.debug_macinfo) }
       
   204   /* SGI/MIPS DWARF 2 extensions */
       
   205   .debug_weaknames 0 : { *(.debug_weaknames) }
       
   206   .debug_funcnames 0 : { *(.debug_funcnames) }
       
   207   .debug_typenames 0 : { *(.debug_typenames) }
       
   208   .debug_varnames  0 : { *(.debug_varnames) }
       
   209 }