linux/arch/unicore32/kernel/vmlinux.lds.S
<<
>>
Prefs
   1/*
   2 * linux/arch/unicore32/kernel/vmlinux.lds.S
   3 *
   4 * Code specific to PKUnity SoC and UniCore ISA
   5 *
   6 * Copyright (C) 2001-2010 GUAN Xue-tao
   7 *
   8 * This program is free software; you can redistribute it and/or modify
   9 * it under the terms of the GNU General Public License version 2 as
  10 * published by the Free Software Foundation.
  11 */
  12
  13#include <asm-generic/vmlinux.lds.h>
  14#include <asm/thread_info.h>
  15#include <asm/memory.h>
  16#include <asm/page.h>
  17#include <asm/cache.h>
  18
  19OUTPUT_ARCH(unicore32)
  20ENTRY(stext)
  21
  22jiffies = jiffies_64;
  23
  24SECTIONS
  25{
  26        . = PAGE_OFFSET + KERNEL_IMAGE_START;
  27
  28        _text = .;
  29        __init_begin = .;
  30        HEAD_TEXT_SECTION
  31        INIT_TEXT_SECTION(PAGE_SIZE)
  32        INIT_DATA_SECTION(16)
  33        PERCPU_SECTION(L1_CACHE_BYTES)
  34        __init_end = .;
  35
  36        _stext = .;
  37        .text : {               /* Real text segment */
  38                TEXT_TEXT
  39                SCHED_TEXT
  40                CPUIDLE_TEXT
  41                LOCK_TEXT
  42
  43                *(.fixup)
  44                *(.gnu.warning)
  45        }
  46        _etext = .;
  47
  48        _sdata = .;
  49        RO_DATA_SECTION(PAGE_SIZE)
  50        RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  51        _edata = .;
  52
  53        EXCEPTION_TABLE(L1_CACHE_BYTES)
  54        NOTES
  55
  56        BSS_SECTION(0, 0, 0)
  57        _end = .;
  58
  59        STABS_DEBUG
  60        DWARF_DEBUG
  61
  62        DISCARDS                /* Exit code and data */
  63}
  64