diff options
author | Julius Werner <jwerner@chromium.org> | 2020-08-25 16:00:44 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-08-27 22:11:17 +0000 |
commit | 644a512e560147324ecf74ebce5e336bc57dd7bf (patch) | |
tree | ec9e63ea2fee79fb2be723568b4208fdcd35140a /src/soc | |
parent | 8cc80d5e50c9382fb04041d7af9c1b59bba0184f (diff) |
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>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/cavium/common/bootblock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/soc/cavium/common/bootblock.c b/src/soc/cavium/common/bootblock.c index 80a41fa375..2fca0abbac 100644 --- a/src/soc/cavium/common/bootblock.c +++ b/src/soc/cavium/common/bootblock.c @@ -8,8 +8,6 @@ #include <timestamp.h> #include <soc/bootblock.h> -DECLARE_OPTIONAL_REGION(timestamp); - __attribute__((weak)) void bootblock_mainboard_early_init(void) { /* no-op */ } __attribute__((weak)) void bootblock_soc_early_init(void) { /* do nothing */ } __attribute__((weak)) void bootblock_soc_init(void) { /* do nothing */ } |