Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2020 Google LLC.
0004  * Written by David Brazdil <dbrazdil@google.com>
0005  *
0006  * Linker script used for partial linking of nVHE EL2 object files.
0007  */
0008 
0009 #include <asm/hyp_image.h>
0010 #include <asm-generic/vmlinux.lds.h>
0011 #include <asm/cache.h>
0012 #include <asm/memory.h>
0013 
0014 SECTIONS {
0015     HYP_SECTION(.idmap.text)
0016     HYP_SECTION(.text)
0017     HYP_SECTION(.data..ro_after_init)
0018     HYP_SECTION(.rodata)
0019 
0020     /*
0021      * .hyp..data..percpu needs to be page aligned to maintain the same
0022      * alignment for when linking into vmlinux.
0023      */
0024     . = ALIGN(PAGE_SIZE);
0025     BEGIN_HYP_SECTION(.data..percpu)
0026         PERCPU_INPUT(L1_CACHE_BYTES)
0027     END_HYP_SECTION
0028     HYP_SECTION(.bss)
0029 }