1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2012 Regents of the University of California
4 * Copyright (C) 2017 SiFive
7 #define LOAD_OFFSET PAGE_OFFSET
8 #include <asm/vmlinux.lds.h>
10 #include <asm/cache.h>
11 #include <asm/thread_info.h>
20 /* Beginning of code and text segment */
25 INIT_TEXT_SECTION(PAGE_SIZE)
27 /* we have to discard exit text and such at runtime, not link time */
36 PERCPU_SECTION(L1_CACHE_BYTES)
53 /* Start of data section */
55 RO_DATA_SECTION(L1_CACHE_BYTES)
60 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
62 __global_pointer$ = . + 0x800;
64 /* End of data section */
69 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0)