vmlinux.lds.in
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #include <linux/config.h>
  2. OUTPUT_FORMAT("elf64-alpha")
  3. ENTRY(__start)
  4. PHDRS { kernel PT_LOAD ; }
  5. SECTIONS
  6. {
  7. #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
  8.   . = 0xfffffc0000310000;
  9. #else
  10.   . = 0xfffffc0000810000;
  11. #endif
  12.   _text = .;
  13.   .text : { *(.text) } :kernel
  14.   _etext = .;
  15.   /* Exception table */
  16.   . = ALIGN(16);
  17.   __start___ex_table = .;
  18.   __ex_table : { *(__ex_table) }
  19.   __stop___ex_table = .;
  20.   /* Kernel symbol table */
  21.   . = ALIGN(8);
  22.   __start___ksymtab = .;
  23.   __ksymtab : { *(__ksymtab) }
  24.   __stop___ksymtab = .;
  25.   .kstrtab : { *(.kstrtab) }
  26.   /* Startup code */
  27.   . = ALIGN(8192);
  28.   __init_begin = .;
  29.   .text.init : { *(.text.init) }
  30.   .data.init : { *(.data.init) }
  31.   . = ALIGN(16);
  32.   __setup_start = .;
  33.   .setup.init : { *(.setup.init) }
  34.   __setup_end = .;
  35.   . = ALIGN(8);
  36.   __initcall_start = .;
  37.   .initcall.init : { *(.initcall.init) }
  38.   __initcall_end = .;
  39.   . = ALIGN(2*8192); /* Align double page for init_task_union */
  40.   __init_end = .;
  41.   /* The initial task and kernel stack */
  42.   init_task : { *(init_task) }
  43.   /* Global data */
  44.   _data = .;
  45.   .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  46.   .rodata : { *(.rodata) *(.rodata.*) }
  47.   .data : { *(.data) CONSTRUCTORS }
  48.   .got : { *(.got) }
  49.   .sdata : { *(.sdata) }
  50.   _edata = .;
  51.   __bss_start = .;
  52.   .sbss : { *(.sbss) *(.scommon) }
  53.   .bss : { *(.bss) *(COMMON) }
  54.   __bss_stop = .;
  55.   _end = .;
  56.   .mdebug 0 : { *(.mdebug) }
  57.   .note 0 : { *(.note) }
  58.   .comment 0 : { *(.comment) }
  59.   /* DWARF 1 */
  60.   .debug          0 : { *(.debug) }
  61.   .line           0 : { *(.line) }
  62.   /* GNU DWARF 1 extensions */
  63.   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  64.   .debug_sfnames  0 : { *(.debug_sfnames) }
  65.   /* DWARF 1.1 and DWARF 2 */
  66.   .debug_aranges  0 : { *(.debug_aranges) }
  67.   .debug_pubnames 0 : { *(.debug_pubnames) }
  68.   /* DWARF 2 */
  69.   .debug_info     0 : { *(.debug_info) }
  70.   .debug_abbrev   0 : { *(.debug_abbrev) }
  71.   .debug_line     0 : { *(.debug_line) }
  72.   .debug_frame    0 : { *(.debug_frame) }
  73.   .debug_str      0 : { *(.debug_str) }
  74.   .debug_loc      0 : { *(.debug_loc) }
  75.   .debug_macinfo  0 : { *(.debug_macinfo) }
  76.   /* SGI/MIPS DWARF 2 extensions */
  77.   .debug_weaknames 0 : { *(.debug_weaknames) }
  78.   .debug_funcnames 0 : { *(.debug_funcnames) }
  79.   .debug_typenames 0 : { *(.debug_typenames) }
  80.   .debug_varnames  0 : { *(.debug_varnames) }
  81.   /DISCARD/ : { *(.text.exit) *(.data.exit) *(.exitcall.exit) }
  82. }