forked from Mirrors/opensbi

This patch remove hard-coding of payload location in fw_payload.elf.ldS by adding compile-time option FW_PAYLOAD_OFFSET. With the new compile-time option, payload will be placed at PLAT_TEXT_START + FW_PAYLOAD_OFFSET address. Signed-off-by: Anup Patel <anup.patel@wdc.com>
27 lines
398 B
Plaintext
27 lines
398 B
Plaintext
/*
|
|
* Copyright (c) 2018 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <anup.patel@wdc.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
OUTPUT_ARCH(riscv)
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
{
|
|
#include "fw_common.ldS"
|
|
|
|
. = PLAT_TEXT_START + FW_PAYLOAD_OFFSET;
|
|
|
|
.payload :
|
|
{
|
|
PROVIDE(_payload_start = .);
|
|
*(.payload)
|
|
. = ALIGN(8);
|
|
PROVIDE(_payload_end = .);
|
|
}
|
|
}
|