Path: blob/master/arch/parisc/kernel/vmlinux.lds.S
10819 views
/* Kernel link layout for various "sections"1*2* Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>3* Copyright (C) 2000-2003 Paul Bame <bame at parisc-linux.org>4* Copyright (C) 2000 John Marvin <jsm at parisc-linux.org>5* Copyright (C) 2000 Michael Ang <mang with subcarrier.org>6* Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org>7* Copyright (C) 2003 James Bottomley <jejb with parisc-linux.org>8* Copyright (C) 2006 Helge Deller <[email protected]>9*10*11* This program is free software; you can redistribute it and/or modify12* it under the terms of the GNU General Public License as published by13* the Free Software Foundation; either version 2 of the License, or14* (at your option) any later version.15*16* This program is distributed in the hope that it will be useful,17* but WITHOUT ANY WARRANTY; without even the implied warranty of18* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the19* GNU General Public License for more details.20*21* You should have received a copy of the GNU General Public License22* along with this program; if not, write to the Free Software23* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA24*/25#include <asm-generic/vmlinux.lds.h>26/* needed for the processor specific cache alignment size */27#include <asm/cache.h>28#include <asm/page.h>29#include <asm/asm-offsets.h>30#include <asm/thread_info.h>3132/* ld script to make hppa Linux kernel */33#ifndef CONFIG_64BIT34OUTPUT_FORMAT("elf32-hppa-linux")35OUTPUT_ARCH(hppa)36#else37OUTPUT_FORMAT("elf64-hppa-linux")38OUTPUT_ARCH(hppa:hppa2.0w)39#endif4041ENTRY(_stext)42#ifndef CONFIG_64BIT43jiffies = jiffies_64 + 4;44#else45jiffies = jiffies_64;46#endif47SECTIONS48{49. = KERNEL_BINARY_TEXT_START;5051_text = .; /* Text and read-only data */52.text ALIGN(16) : {53HEAD_TEXT54TEXT_TEXT55SCHED_TEXT56LOCK_TEXT57KPROBES_TEXT58IRQENTRY_TEXT59*(.text.do_softirq)60*(.text.sys_exit)61*(.text.do_sigaltstack)62*(.text.do_fork)63*(.text.*)64*(.fixup)65*(.lock.text) /* out-of-line lock text */66*(.gnu.warning)67} = 068/* End of text section */69_etext = .;7071/* Start of data section */72_sdata = .;7374RODATA7576/* writeable */77/* Make sure this is page aligned so78* that we can properly leave these79* as writable80*/81. = ALIGN(PAGE_SIZE);82data_start = .;8384/* unwind info */85.PARISC.unwind : {86__start___unwind = .;87*(.PARISC.unwind)88__stop___unwind = .;89}9091EXCEPTION_TABLE(16)92NOTES9394/* Data */95RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)9697/* PA-RISC locks requires 16-byte alignment */98. = ALIGN(16);99.data..lock_aligned : {100*(.data..lock_aligned)101}102103/* End of data section */104_edata = .;105106/* BSS */107__bss_start = .;108/* page table entries need to be PAGE_SIZE aligned */109. = ALIGN(PAGE_SIZE);110.data..vmpages : {111*(.data..vm0.pmd)112*(.data..vm0.pgd)113*(.data..vm0.pte)114}115.bss : {116*(.bss)117*(COMMON)118}119__bss_stop = .;120121#ifdef CONFIG_64BIT122. = ALIGN(16);123/* Linkage tables */124.opd : {125*(.opd)126} PROVIDE (__gp = .);127.plt : {128*(.plt)129}130.dlt : {131*(.dlt)132}133#endif134135/* reserve space for interrupt stack by aligning __init* to 16k */136. = ALIGN(16384);137__init_begin = .;138INIT_TEXT_SECTION(16384)139. = ALIGN(PAGE_SIZE);140INIT_DATA_SECTION(16)141/* we have to discard exit text and such at runtime, not link time */142.exit.text :143{144EXIT_TEXT145}146.exit.data :147{148EXIT_DATA149}150151PERCPU_SECTION(L1_CACHE_BYTES)152. = ALIGN(PAGE_SIZE);153__init_end = .;154/* freed after init ends here */155_end = . ;156157STABS_DEBUG158.note 0 : { *(.note) }159160/* Sections to be discarded */161DISCARDS162/DISCARD/ : {163#ifdef CONFIG_64BIT164/* temporary hack until binutils is fixed to not emit these165* for static binaries166*/167*(.interp)168*(.dynsym)169*(.dynstr)170*(.dynamic)171*(.hash)172*(.gnu.hash)173#endif174}175}176177178