Heinrich Schuchardt 3c9fc23c44 sandbox: don't refer to symbol _init
GCC provides a symbol _init in crti.o on x86_64 and aarch64 but not on
RISC-V. The following lines leads to a build error for sandbox_defconfig on
RISC-V due to the missing symbol:

    common/board_f.c:269:
    #elif defined(CONFIG_SANDBOX) || defined(CONFIG_EFI_APP)
            gd->mon_len = (ulong)&_end - (ulong)_init;

The sandbox code is not copied into the memory allocated using mmap().
Hence we can safely use gd->mon_len = 0 to avoid the reference to _init.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
2021-07-06 10:38:03 -06:00
..
2021-07-01 08:57:23 -04:00
2021-07-02 15:03:53 -04:00
2021-07-06 10:38:03 -06:00
2020-05-18 21:19:18 -04:00
2021-04-20 07:31:12 -04:00
2021-03-12 17:41:35 -05:00
2021-06-08 11:39:09 -04:00
2021-04-20 07:31:12 -04:00
2021-04-12 17:44:55 -04:00
2021-04-20 07:31:12 -04:00
2021-01-06 07:57:33 -05:00
2020-10-22 09:54:53 -04:00