2 * Linker script for Hexagon kernel
4 * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
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.
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.
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
21 #include <asm-generic/vmlinux.lds.h>
22 #include <asm/asm-offsets.h> /* Most of the kernel defines are here */
23 #include <asm/mem-layout.h> /* except for page_offset */
24 #include <asm/cache.h> /* and now we're pulling cache line size */
31 See asm-generic/vmlinux.lds.h for expansion of some of these macros.
32 See asm-generic/sections.h for seemingly required labels.
35 #define PAGE_SIZE _PAGE_SIZE
43 INIT_TEXT_SECTION(PAGE_SIZE)
44 PERCPU_SECTION(L1_CACHE_BYTES)
47 . = ALIGN(_PAGE_SIZE);
49 .text : AT(ADDR(.text)) {
59 INIT_DATA_SECTION(PAGE_SIZE)
62 RW_DATA_SECTION(32,PAGE_SIZE,_THREAD_SIZE)
63 RO_DATA_SECTION(PAGE_SIZE)
69 BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)