1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Linker script for Hexagon kernel
5 * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
8 #include <asm-generic/vmlinux.lds.h>
9 #include <asm/asm-offsets.h> /* Most of the kernel defines are here */
10 #include <asm/mem-layout.h> /* except for page_offset */
11 #include <asm/cache.h> /* and now we're pulling cache line size */
12 #include <asm/thread_info.h> /* and we need THREAD_SIZE too */
20 See asm-generic/vmlinux.lds.h for expansion of some of these macros.
21 See asm-generic/sections.h for seemingly required labels.
24 #define PAGE_SIZE _PAGE_SIZE
32 INIT_TEXT_SECTION(PAGE_SIZE)
33 PERCPU_SECTION(L1_CACHE_BYTES)
36 . = ALIGN(_PAGE_SIZE);
38 .text : AT(ADDR(.text)) {
49 INIT_DATA_SECTION(PAGE_SIZE)
52 RW_DATA(32,PAGE_SIZE,_THREAD_SIZE)
58 BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)