vmlinux.lds
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:3k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. OUTPUT_ARCH(powerpc)
  2. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  3. /* Do we need any of these for elf?
  4.    __DYNAMIC = 0;    */
  5. SECTIONS
  6. {
  7.   /* Read-only sections, merged into text segment: */
  8.   . = + SIZEOF_HEADERS;
  9.   .interp : { *(.interp) }
  10.   .hash          : { *(.hash) }
  11.   .dynsym        : { *(.dynsym) }
  12.   .dynstr        : { *(.dynstr) }
  13.   .rel.text      : { *(.rel.text) }
  14.   .rela.text     : { *(.rela.text)  }
  15.   .rel.data      : { *(.rel.data) }
  16.   .rela.data     : { *(.rela.data)  }
  17.   .rel.rodata    : { *(.rel.rodata)  }
  18.   .rela.rodata   : { *(.rela.rodata)  }
  19.   .rel.got       : { *(.rel.got) }
  20.   .rela.got      : { *(.rela.got) }
  21.   .rel.ctors     : { *(.rel.ctors) }
  22.   .rela.ctors    : { *(.rela.ctors) }
  23.   .rel.dtors     : { *(.rel.dtors) }
  24.   .rela.dtors    : { *(.rela.dtors) }
  25.   .rel.bss       : { *(.rel.bss) }
  26.   .rela.bss      : { *(.rela.bss) }
  27.   .rel.plt       : { *(.rel.plt) }
  28.   .rela.plt      : { *(.rela.plt) }
  29. /*  .init          : { *(.init) } =0*/
  30.   .plt : { *(.plt) }
  31.   .text      :
  32.   {
  33.     *(.text)
  34.     *(.fixup)
  35.     *(.got1)
  36.     __got2_start = .;
  37.     *(.got2)
  38.     __got2_end = .;
  39.   }
  40.   _etext = .;
  41.   PROVIDE (etext = .);
  42.   .rodata    :
  43.   {
  44.     *(.rodata)
  45.     *(.rodata.*)
  46.     *(.rodata1)
  47.   }
  48.   .kstrtab   : { *(.kstrtab) }
  49.   .fini      : { *(.fini)    } =0
  50.   .ctors     : { *(.ctors)   }
  51.   .dtors     : { *(.dtors)   }
  52.   /* Read-write section, merged into data segment: */
  53.   . = (. + 0x0FFF) & 0xFFFFF000;
  54.   .data    :
  55.   {
  56.     *(.data)
  57.     *(.data1)
  58.     *(.sdata)
  59.     *(.sdata2)
  60.     *(.got.plt) *(.got)
  61.     *(.dynamic)
  62.     CONSTRUCTORS
  63.   }
  64.   _edata  =  .;
  65.   PROVIDE (edata = .);
  66.   .fixup   : { *(.fixup) }
  67.   __start___ex_table = .;
  68.   __ex_table : { *(__ex_table) }
  69.   __stop___ex_table = .;
  70.   __start___ksymtab = .; /* Kernel symbol table */
  71.   __ksymtab : { *(__ksymtab) }
  72.   __stop___ksymtab = .;
  73.   __start___ftr_fixup = .;
  74.   __ftr_fixup : { *(__ftr_fixup) }
  75.   __stop___ftr_fixup = .;
  76.   . = ALIGN(32);
  77.   .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  78.   . = ALIGN(4096);
  79.   __init_begin = .;
  80.   .text.init : { *(.text.init) }
  81.   .data.init : { 
  82.     *(.data.init);
  83.     __vtop_table_begin = .;
  84.     *(.vtop_fixup);
  85.     __vtop_table_end = .;
  86.     __ptov_table_begin = .;
  87.     *(.ptov_fixup);
  88.     __ptov_table_end = .;
  89.   }
  90.   . = ALIGN(16);
  91.   __setup_start = .;
  92.   .setup.init : { *(.setup.init) }
  93.   __setup_end = .;
  94.   __initcall_start = .;
  95.   .initcall.init : { *(.initcall.init) }
  96.   __initcall_end = .;
  97.   . = ALIGN(4096);
  98.   __init_end = .;
  99.   . = ALIGN(4096);
  100.   __pmac_begin = .;
  101.   .text.pmac : { *(.text.pmac) }
  102.   .data.pmac : { *(.data.pmac) }
  103.   . = ALIGN(4096);
  104.   __pmac_end = .;
  105.   . = ALIGN(4096);
  106.   __prep_begin = .;
  107.   .text.prep : { *(.text.prep) }
  108.   .data.prep : { *(.data.prep) }
  109.   . = ALIGN(4096);
  110.   __prep_end = .;
  111.   . = ALIGN(4096);
  112.   __chrp_begin = .;
  113.   .text.chrp : { *(.text.chrp) }
  114.   .data.chrp : { *(.data.chrp) }
  115.   . = ALIGN(4096);
  116.   __chrp_end = .;
  117.   . = ALIGN(4096);
  118.   __openfirmware_begin = .;
  119.   .text.openfirmware : { *(.text.openfirmware) }
  120.   .data.openfirmware : { *(.data.openfirmware) }
  121.   . = ALIGN(4096);
  122.   __openfirmware_end = .;
  123.   __bss_start = .;
  124.   .bss       :
  125.   {
  126.    *(.sbss) *(.scommon)
  127.    *(.dynbss)
  128.    *(.bss)
  129.    *(COMMON)
  130.   }
  131.   _end = . ;
  132.   PROVIDE (end = .);
  133. }