diff options
author | Iru Cai <mytbk920423@gmail.com> | 2021-06-16 11:29:36 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-07-01 09:43:54 +0000 |
commit | 3ab408c698df4246acd26a74f0e3db638d80a431 (patch) | |
tree | 2260ccc66202191bca651e0bd7a86c3b5221f47b | |
parent | c76c59aa6a62ef2fb9fa7e97ac76156b6593e4c5 (diff) |
toolchain.inc: copy architecture specific CFLAGS to GCC_ADAFLAGS
This fixes building with libgfxinit in x86_64 mode, which can
generates unsupported R_X86_64_32S relocations without -mcmodel=large.
Change-Id: If5162fae475f3e70c856d9664a8cfc6a89d82283
Signed-off-by: Iru Cai <mytbk920423@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55549
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | toolchain.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain.inc b/toolchain.inc index 18c6ab2970..80dab78d63 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -50,6 +50,13 @@ CFLAGS_x86_32 += CFLAGS_x86_64 += -mcmodel=large -mno-red-zone CFLAGS_ppc64 += +GCC_ADAFLAGS_arm += +GCC_ADAFLAGS_arm64 += -mgeneral-regs-only +GCC_ADAFLAGS_riscv += +GCC_ADAFLAGS_x86_32 += +GCC_ADAFLAGS_x86_64 += -mcmodel=large -mno-red-zone +GCC_ADAFLAGS_ppc64 += + # Some boards only provide 2K stacks, so storing lots of data there leads to # problems. Since C rules don't allow us to statically determine the maximum # stack use, we use 1.5K as heuristic, assuming that we typically have lots |