/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright (C) 2020 Western Digital Corporation or its affiliates.3* Linker script variables to be set after section resolution, as4* ld.lld does not like variables assigned before SECTIONS is processed.5* Based on arch/arm64/kernel/image-vars.h6*/7#ifndef __RISCV_KERNEL_IMAGE_VARS_H8#define __RISCV_KERNEL_IMAGE_VARS_H910#ifndef LINKER_SCRIPT11#error This file should only be included in vmlinux.lds.S12#endif1314#ifdef CONFIG_EFI1516/*17* The EFI stub has its own symbol namespace prefixed by __efistub_, to18* isolate it from the kernel proper. The following symbols are legally19* accessed by the stub, so provide some aliases to make them accessible.20* Only include data symbols here, or text symbols of functions that are21* guaranteed to be safe when executed at another offset than they were22* linked at. The routines below are all implemented in assembler in a23* position independent manner24*/25__efistub__start = _start;26__efistub__start_kernel = _start_kernel;27__efistub__end = _end;28__efistub__edata = _edata;29__efistub___init_text_end = __init_text_end;30#if defined(CONFIG_EFI_EARLYCON) || defined(CONFIG_SYSFB)31__efistub_screen_info = screen_info;32#endif3334#endif3536#endif /* __RISCV_KERNEL_IMAGE_VARS_H */373839