/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Linker script for Hexagon kernel3*4* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.5*/67#include <asm-generic/vmlinux.lds.h>8#include <asm/asm-offsets.h> /* Most of the kernel defines are here */9#include <asm/mem-layout.h> /* except for page_offset */10#include <asm/cache.h> /* and now we're pulling cache line size */11#include <asm/thread_info.h> /* and we need THREAD_SIZE too */1213OUTPUT_ARCH(hexagon)14ENTRY(stext)1516jiffies = jiffies_64;1718/*19See asm-generic/vmlinux.lds.h for expansion of some of these macros.20See asm-generic/sections.h for seemingly required labels.21*/2223#define PAGE_SIZE _PAGE_SIZE2425SECTIONS26{27. = PAGE_OFFSET;2829__init_begin = .;30HEAD_TEXT_SECTION31INIT_TEXT_SECTION(PAGE_SIZE)32PERCPU_SECTION(L1_CACHE_BYTES)33__init_end = .;3435. = ALIGN(_PAGE_SIZE);36_stext = .;37.text : AT(ADDR(.text)) {38_text = .;39TEXT_TEXT40IRQENTRY_TEXT41SOFTIRQENTRY_TEXT42SCHED_TEXT43LOCK_TEXT44KPROBES_TEXT45*(.fixup)46}47_etext = .;4849INIT_DATA_SECTION(PAGE_SIZE)5051_sdata = .;52RW_DATA(32,PAGE_SIZE,_THREAD_SIZE)53RO_DATA(PAGE_SIZE)54_edata = .;5556EXCEPTION_TABLE(16)5758BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)5960_end = .;6162STABS_DEBUG63DWARF_DEBUG64ELF_DETAILS65.hexagon.attributes 0 : { *(.hexagon.attributes) }6667DISCARDS68}697071