coreboot/src/arch/riscv
Julius Werner 644a512e56 symbols: Change implementation details of DECLARE_OPTIONAL_REGION()
It seems that GCC's LTO doesn't like the way we implement
DECLARE_OPTIONAL_REGION(). This patch changes it so that rather than
having a normal DECLARE_REGION() in <symbols.h> and then an extra
DECLARE_OPTIONAL_REGION() in the C file using it, you just say
DECLARE_OPTIONAL_REGION() directly in <symbols.h> (in place and instead
of the usual DECLARE_REGION()). This basically looks the same way in the
resulting object file but somehow LTO seems to like it better.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I6096207b311d70c8e9956cd9406bec45be04a4a2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44791
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
2020-08-27 22:11:17 +00:00
..
include src/arch: Drop unneeded empty lines 2020-08-24 09:16:19 +00:00
arch_timer.c src: Remove unused 'include <stddef.h> 2020-08-18 12:15:44 +00:00
boot.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootblock.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
fit_payload.c src: Remove unused '#include <cbfs.h>' 2020-06-02 07:42:56 +00:00
fp_asm.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig
Makefile.inc treewide: Add Kconfig variable MEMLAYOUT_LD_FILE 2020-06-13 06:49:23 +00:00
mcall.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
misaligned.c src/arch: Drop unneeded empty lines 2020-08-24 09:16:19 +00:00
misc.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
opensbi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
payload.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pmp.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ramstage.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
romstage.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sbi.c src/arch: Drop unneeded empty lines 2020-08-24 09:16:19 +00:00
smp.c src: Remove unused 'include <stddef.h> 2020-08-18 12:15:44 +00:00
tables.c symbols: Change implementation details of DECLARE_OPTIONAL_REGION() 2020-08-27 22:11:17 +00:00
trap_handler.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
trap_util.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
virtual_memory.c src: Remove unused '#include <stdint.h>' 2020-05-13 08:48:17 +00:00