symbian-qemu-0.9.1-12/qemu-symbian-svp/alpha.ld
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 OUTPUT_FORMAT("elf64-alpha", "elf64-alpha",
       
     2 	      "elf64-alpha")
       
     3 OUTPUT_ARCH(alpha)
       
     4 ENTRY(__start)
       
     5 SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/alpha-unknown-linux-gnu/lib);
       
     6 SECTIONS
       
     7 {
       
     8   /* Reserve a chunk of memory at a low address to prevent the host ld.so
       
     9      loading shared libraries where we want to put the target application.  */
       
    10   . = 0x10000;
       
    11   .reserved : { *(.reserved) }
       
    12   /* Read-only sections, merged into text segment: */
       
    13   /* Older linkers can't add an extra program header for .reserved when
       
    14      SIZEOF_HEADERS is user.  Instead leave a chunk of space for them.  */
       
    15   . = 0x60000000 + 0x10000 /*SIZEOF_HEADERS*/;
       
    16   .interp     : { *(.interp) 	}
       
    17   .hash          : { *(.hash)		}
       
    18   .dynsym        : { *(.dynsym)		}
       
    19   .dynstr        : { *(.dynstr)		}
       
    20   .gnu.version   : { *(.gnu.version)	}
       
    21   .gnu.version_d   : { *(.gnu.version_d)	}
       
    22   .gnu.version_r   : { *(.gnu.version_r)	}
       
    23   .rel.text      :
       
    24     { *(.rel.text) *(.rel.gnu.linkonce.t*) }
       
    25   .rela.text     :
       
    26     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
       
    27   .rel.data      :
       
    28     { *(.rel.data) *(.rel.gnu.linkonce.d*) }
       
    29   .rela.data     :
       
    30     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
       
    31   .rel.rodata    :
       
    32     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
       
    33   .rela.rodata   :
       
    34     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
       
    35   .rel.got       : { *(.rel.got)		}
       
    36   .rela.got      : { *(.rela.got)		}
       
    37   .rel.ctors     : { *(.rel.ctors)	}
       
    38   .rela.ctors    : { *(.rela.ctors)	}
       
    39   .rel.dtors     : { *(.rel.dtors)	}
       
    40   .rela.dtors    : { *(.rela.dtors)	}
       
    41   .rel.init      : { *(.rel.init)	}
       
    42   .rela.init     : { *(.rela.init)	}
       
    43   .rel.fini      : { *(.rel.fini)	}
       
    44   .rela.fini     : { *(.rela.fini)	}
       
    45   .rel.bss       : { *(.rel.bss)		}
       
    46   .rela.bss      : { *(.rela.bss)		}
       
    47   .rel.plt       : { *(.rel.plt)		}
       
    48   .rela.plt      : { *(.rela.plt)		}
       
    49   .init          : { *(.init)	} =0x47ff041f
       
    50   .text      :
       
    51   {
       
    52     *(.text)
       
    53     /* .gnu.warning sections are handled specially by elf32.em.  */
       
    54     *(.gnu.warning)
       
    55     *(.gnu.linkonce.t*)
       
    56   } =0x47ff041f
       
    57   _etext = .;
       
    58   PROVIDE (etext = .);
       
    59   .fini      : { *(.fini)    } =0x47ff041f
       
    60   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
       
    61   .rodata1   : { *(.rodata1) }
       
    62   .reginfo : { *(.reginfo) }
       
    63   /* Adjust the address for the data segment.  We want to adjust up to
       
    64      the same address within the page on the next page up.  */
       
    65   . = ALIGN(0x100000) + (. & (0x100000 - 1));
       
    66   .data    :
       
    67   {
       
    68     *(.data)
       
    69     *(.gnu.linkonce.d*)
       
    70     CONSTRUCTORS
       
    71   }
       
    72   .data1   : { *(.data1) }
       
    73   .ctors         :
       
    74   {
       
    75     *(.ctors)
       
    76   }
       
    77   .dtors         :
       
    78   {
       
    79     *(.dtors)
       
    80   }
       
    81   .plt      : { *(.plt)	}
       
    82   .got           : { *(.got.plt) *(.got) }
       
    83   .dynamic       : { *(.dynamic) }
       
    84   /* We want the small data sections together, so single-instruction offsets
       
    85      can access them all, and initialized data all before uninitialized, so
       
    86      we can shorten the on-disk segment size.  */
       
    87   .sdata     : { *(.sdata) }
       
    88   _edata  =  .;
       
    89   PROVIDE (edata = .);
       
    90   __bss_start = .;
       
    91   .sbss      : { *(.sbss) *(.scommon) }
       
    92   .bss       :
       
    93   {
       
    94    *(.dynbss)
       
    95    *(.bss)
       
    96    *(COMMON)
       
    97   }
       
    98   _end = . ;
       
    99   PROVIDE (end = .);
       
   100   /* Stabs debugging sections.  */
       
   101   .stab 0 : { *(.stab) }
       
   102   .stabstr 0 : { *(.stabstr) }
       
   103   .stab.excl 0 : { *(.stab.excl) }
       
   104   .stab.exclstr 0 : { *(.stab.exclstr) }
       
   105   .stab.index 0 : { *(.stab.index) }
       
   106   .stab.indexstr 0 : { *(.stab.indexstr) }
       
   107   .comment 0 : { *(.comment) }
       
   108   /* DWARF debug sections.
       
   109      Symbols in the DWARF debugging sections are relative to the beginning
       
   110      of the section so we begin them at 0.  */
       
   111   /* DWARF 1 */
       
   112   .debug          0 : { *(.debug) }
       
   113   .line           0 : { *(.line) }
       
   114   /* GNU DWARF 1 extensions */
       
   115   .debug_srcinfo  0 : { *(.debug_srcinfo) }
       
   116   .debug_sfnames  0 : { *(.debug_sfnames) }
       
   117   /* DWARF 1.1 and DWARF 2 */
       
   118   .debug_aranges  0 : { *(.debug_aranges) }
       
   119   .debug_pubnames 0 : { *(.debug_pubnames) }
       
   120   /* DWARF 2 */
       
   121   .debug_info     0 : { *(.debug_info) }
       
   122   .debug_abbrev   0 : { *(.debug_abbrev) }
       
   123   .debug_line     0 : { *(.debug_line) }
       
   124   .debug_frame    0 : { *(.debug_frame) }
       
   125   .debug_str      0 : { *(.debug_str) }
       
   126   .debug_loc      0 : { *(.debug_loc) }
       
   127   .debug_macinfo  0 : { *(.debug_macinfo) }
       
   128   /* SGI/MIPS DWARF 2 extensions */
       
   129   .debug_weaknames 0 : { *(.debug_weaknames) }
       
   130   .debug_funcnames 0 : { *(.debug_funcnames) }
       
   131   .debug_typenames 0 : { *(.debug_typenames) }
       
   132   .debug_varnames  0 : { *(.debug_varnames) }
       
   133   /* These must appear regardless of  .  */
       
   134 }