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)
54 /* Start of data section */
56 RO_DATA(L1_CACHE_BYTES)
61 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
63 __global_pointer$ = . + 0x800;
65 /* End of data section */
70 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0)