linux/arch/hexagon/kernel/vmlinux.lds.S
<<
>>
Prefs
   1/*
   2 * Linker script for Hexagon kernel
   3 *
   4 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
   5 *
   6 * This program is free software; you can redistribute it and/or modify
   7 * it under the terms of the GNU General Public License version 2 and
   8 * only version 2 as published by the Free Software Foundation.
   9 *
  10 * This program is distributed in the hope that it will be useful,
  11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13 * GNU General Public License for more details.
  14 *
  15 * You should have received a copy of the GNU General Public License
  16 * along with this program; if not, write to the Free Software
  17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  18 * 02110-1301, USA.
  19 */
  20
  21#define LOAD_OFFSET PAGE_OFFSET
  22
  23#include <asm-generic/vmlinux.lds.h>
  24#include <asm/asm-offsets.h>    /*  Most of the kernel defines are here  */
  25#include <asm/mem-layout.h>     /*  except for page_offset  */
  26#include <asm/cache.h>          /*  and now we're pulling cache line size  */
  27OUTPUT_ARCH(hexagon)
  28ENTRY(stext)
  29
  30jiffies = jiffies_64;
  31
  32/*
  33See asm-generic/vmlinux.lds.h for expansion of some of these macros.
  34See asm-generic/sections.h for seemingly required labels.
  35*/
  36
  37#define PAGE_SIZE _PAGE_SIZE
  38
  39/*  This LOAD_OFFSET is temporary for debugging on the simulator; it may change
  40    for hypervisor pseudo-physical memory.  */
  41
  42
  43SECTIONS
  44{
  45        . = PAGE_OFFSET + LOAD_ADDRESS;
  46
  47        __init_begin = .;
  48        HEAD_TEXT_SECTION
  49        INIT_TEXT_SECTION(PAGE_SIZE)
  50        PERCPU_SECTION(L1_CACHE_BYTES)
  51        __init_end = .;
  52
  53        . = ALIGN(_PAGE_SIZE);
  54        _stext = .;
  55        .text : AT(ADDR(.text) - LOAD_OFFSET) {
  56                _text = .;
  57                TEXT_TEXT
  58                SCHED_TEXT
  59                LOCK_TEXT
  60                KPROBES_TEXT
  61                *(.fixup)
  62        }
  63        _etext = .;
  64
  65        INIT_DATA_SECTION(PAGE_SIZE)
  66
  67        _sdata = .;
  68                RW_DATA_SECTION(32,PAGE_SIZE,PAGE_SIZE)
  69                RO_DATA_SECTION(PAGE_SIZE)
  70        _edata = .;
  71
  72        EXCEPTION_TABLE(16)
  73        NOTES
  74
  75        BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)
  76
  77        _end = .;
  78
  79        /DISCARD/ : {
  80                EXIT_TEXT
  81                EXIT_DATA
  82                EXIT_CALL
  83        }
  84
  85        STABS_DEBUG
  86        DWARF_DEBUG
  87
  88}
  89