coreboot/src/arch/arm
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
..
armv4 src/arch: Drop unneeded empty lines 2020-08-24 09:16:19 +00:00
armv7 symbols: Change implementation details of DECLARE_OPTIONAL_REGION() 2020-08-27 22:11:17 +00:00
include smp/spinlock: Do not define barrier() globally 2020-07-26 21:00:29 +00:00
libgcc src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
asmlib.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
boot.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
clock.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cpu.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
div0.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
eabi_compat.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
fit_payload.c src/arch: Drop unneeded empty lines 2020-08-24 09:16:19 +00:00
id.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig Kconfig: Drop the C_ENVIRONMENT_BOOTBLOCK symbol 2019-11-25 09:17:38 +00:00
Makefile.inc arch/arm: Enable FIT payloads 2020-08-19 07:16:59 +00:00
memcpy.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
memmove.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
memset.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
stages.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
tables.c symbols: Change implementation details of DECLARE_OPTIONAL_REGION() 2020-08-27 22:11:17 +00:00