symbian-qemu-0.9.1-12/qemu-symbian-svp/arm.ld
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm",
       
     2 	      "elf32-littlearm")
       
     3 OUTPUT_ARCH(arm)
       
     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   .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
       
    63    __exidx_start = .;
       
    64   .ARM.exidx   : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
       
    65    __exidx_end = .;
       
    66   .reginfo : { *(.reginfo) }
       
    67   /* Adjust the address for the data segment.  We want to adjust up to
       
    68      the same address within the page on the next page up.  */
       
    69   . = ALIGN(0x100000) + (. & (0x100000 - 1));
       
    70   .data    :
       
    71   {
       
    72     *(.gen_code)
       
    73     *(.data)
       
    74     *(.gnu.linkonce.d*)
       
    75     CONSTRUCTORS
       
    76   }
       
    77   .tbss           : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
       
    78   .data1   : { *(.data1) }
       
    79   .preinit_array     :
       
    80   {
       
    81     PROVIDE_HIDDEN (__preinit_array_start = .);
       
    82     KEEP (*(.preinit_array))
       
    83     PROVIDE_HIDDEN (__preinit_array_end = .);
       
    84   }
       
    85   .init_array     :
       
    86   {
       
    87      PROVIDE_HIDDEN (__init_array_start = .);
       
    88      KEEP (*(SORT(.init_array.*)))
       
    89      KEEP (*(.init_array))
       
    90      PROVIDE_HIDDEN (__init_array_end = .);
       
    91   }
       
    92   .fini_array     :
       
    93   {
       
    94     PROVIDE_HIDDEN (__fini_array_start = .);
       
    95     KEEP (*(.fini_array))
       
    96     KEEP (*(SORT(.fini_array.*)))
       
    97     PROVIDE_HIDDEN (__fini_array_end = .);
       
    98   }
       
    99   .ctors         :
       
   100   {
       
   101     *(.ctors)
       
   102   }
       
   103   .dtors         :
       
   104   {
       
   105     *(.dtors)
       
   106   }
       
   107   .plt      : { *(.plt)	}
       
   108   .got           : { *(.got.plt) *(.got) }
       
   109   .dynamic       : { *(.dynamic) }
       
   110   /* We want the small data sections together, so single-instruction offsets
       
   111      can access them all, and initialized data all before uninitialized, so
       
   112      we can shorten the on-disk segment size.  */
       
   113   .sdata     : { *(.sdata) }
       
   114   _edata  =  .;
       
   115   PROVIDE (edata = .);
       
   116   __bss_start = .;
       
   117   .sbss      : { *(.sbss) *(.scommon) }
       
   118   .bss       :
       
   119   {
       
   120    *(.dynbss)
       
   121    *(.bss)
       
   122    *(COMMON)
       
   123   }
       
   124   _end = . ;
       
   125   PROVIDE (end = .);
       
   126   /* Stabs debugging sections.  */
       
   127   .stab 0 : { *(.stab) }
       
   128   .stabstr 0 : { *(.stabstr) }
       
   129   .stab.excl 0 : { *(.stab.excl) }
       
   130   .stab.exclstr 0 : { *(.stab.exclstr) }
       
   131   .stab.index 0 : { *(.stab.index) }
       
   132   .stab.indexstr 0 : { *(.stab.indexstr) }
       
   133   .comment 0 : { *(.comment) }
       
   134   /* DWARF debug sections.
       
   135      Symbols in the DWARF debugging sections are relative to the beginning
       
   136      of the section so we begin them at 0.  */
       
   137   /* DWARF 1 */
       
   138   .debug          0 : { *(.debug) }
       
   139   .line           0 : { *(.line) }
       
   140   /* GNU DWARF 1 extensions */
       
   141   .debug_srcinfo  0 : { *(.debug_srcinfo) }
       
   142   .debug_sfnames  0 : { *(.debug_sfnames) }
       
   143   /* DWARF 1.1 and DWARF 2 */
       
   144   .debug_aranges  0 : { *(.debug_aranges) }
       
   145   .debug_pubnames 0 : { *(.debug_pubnames) }
       
   146   /* DWARF 2 */
       
   147   .debug_info     0 : { *(.debug_info) }
       
   148   .debug_abbrev   0 : { *(.debug_abbrev) }
       
   149   .debug_line     0 : { *(.debug_line) }
       
   150   .debug_frame    0 : { *(.debug_frame) }
       
   151   .debug_str      0 : { *(.debug_str) }
       
   152   .debug_loc      0 : { *(.debug_loc) }
       
   153   .debug_macinfo  0 : { *(.debug_macinfo) }
       
   154   /* SGI/MIPS DWARF 2 extensions */
       
   155   .debug_weaknames 0 : { *(.debug_weaknames) }
       
   156   .debug_funcnames 0 : { *(.debug_funcnames) }
       
   157   .debug_typenames 0 : { *(.debug_typenames) }
       
   158   .debug_varnames  0 : { *(.debug_varnames) }
       
   159   /* These must appear regardless of  .  */
       
   160 }