2019-05-29 14:12:41 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2011-10-31 23:55:58 +00:00
|
|
|
/*
|
|
|
|
* Linker script for Hexagon kernel
|
|
|
|
*
|
2014-04-09 00:00:45 +00:00
|
|
|
* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
|
2011-10-31 23:55:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm-generic/vmlinux.lds.h>
|
|
|
|
#include <asm/asm-offsets.h> /* Most of the kernel defines are here */
|
|
|
|
#include <asm/mem-layout.h> /* except for page_offset */
|
|
|
|
#include <asm/cache.h> /* and now we're pulling cache line size */
|
2018-01-08 10:45:03 +00:00
|
|
|
#include <asm/thread_info.h> /* and we need THREAD_SIZE too */
|
|
|
|
|
2011-10-31 23:55:58 +00:00
|
|
|
OUTPUT_ARCH(hexagon)
|
|
|
|
ENTRY(stext)
|
|
|
|
|
|
|
|
jiffies = jiffies_64;
|
|
|
|
|
|
|
|
/*
|
|
|
|
See asm-generic/vmlinux.lds.h for expansion of some of these macros.
|
|
|
|
See asm-generic/sections.h for seemingly required labels.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define PAGE_SIZE _PAGE_SIZE
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2013-03-22 21:05:40 +00:00
|
|
|
. = PAGE_OFFSET;
|
2011-10-31 23:55:58 +00:00
|
|
|
|
|
|
|
__init_begin = .;
|
|
|
|
HEAD_TEXT_SECTION
|
|
|
|
INIT_TEXT_SECTION(PAGE_SIZE)
|
|
|
|
PERCPU_SECTION(L1_CACHE_BYTES)
|
|
|
|
__init_end = .;
|
|
|
|
|
|
|
|
. = ALIGN(_PAGE_SIZE);
|
|
|
|
_stext = .;
|
2013-03-22 21:05:40 +00:00
|
|
|
.text : AT(ADDR(.text)) {
|
2011-10-31 23:55:58 +00:00
|
|
|
_text = .;
|
|
|
|
TEXT_TEXT
|
|
|
|
SCHED_TEXT
|
2016-10-08 00:02:55 +00:00
|
|
|
CPUIDLE_TEXT
|
2011-10-31 23:55:58 +00:00
|
|
|
LOCK_TEXT
|
|
|
|
KPROBES_TEXT
|
|
|
|
*(.fixup)
|
|
|
|
}
|
|
|
|
_etext = .;
|
|
|
|
|
|
|
|
INIT_DATA_SECTION(PAGE_SIZE)
|
|
|
|
|
|
|
|
_sdata = .;
|
2019-10-29 21:13:35 +00:00
|
|
|
RW_DATA(32,PAGE_SIZE,_THREAD_SIZE)
|
2019-10-29 21:13:34 +00:00
|
|
|
RO_DATA(PAGE_SIZE)
|
2011-10-31 23:55:58 +00:00
|
|
|
_edata = .;
|
|
|
|
|
|
|
|
EXCEPTION_TABLE(16)
|
|
|
|
|
|
|
|
BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)
|
|
|
|
|
|
|
|
_end = .;
|
|
|
|
|
|
|
|
/DISCARD/ : {
|
|
|
|
EXIT_TEXT
|
|
|
|
EXIT_DATA
|
|
|
|
EXIT_CALL
|
|
|
|
}
|
|
|
|
|
|
|
|
STABS_DEBUG
|
|
|
|
DWARF_DEBUG
|
|
|
|
|
|
|
|
}
|