diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-12-28 19:18:46 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-12-30 12:36:30 +0000 |
commit | d7892bc3913fab68c880d3b7a1206b4c23d5dbe3 (patch) | |
tree | 93a092c0b95592e7a61a04c33ffb1a79c06df2b2 /src/arch/x86/car.ld | |
parent | 1c105903078f85dd1be805c737b4e4da6dea0618 (diff) | |
download | coreboot-d7892bc3913fab68c880d3b7a1206b4c23d5dbe3.tar.xz |
arch/x86: Add CAR stack location symbols
Add symbols for the non C_ENVIRONMENT_BOOTBLOCK builds
and use them for stack guards.
Change-Id: Ib622eacb161d9a110d35a7d6979d1b601503b6f4
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30491
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/arch/x86/car.ld')
-rw-r--r-- | src/arch/x86/car.ld | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld index 86656829ab..2f0ce50e3c 100644 --- a/src/arch/x86/car.ld +++ b/src/arch/x86/car.ld @@ -86,6 +86,10 @@ _car_global_end = .; _car_relocatable_data_end = .; +#if !IS_ENABLED(CONFIG_C_ENVIRONMENT_BOOTBLOCK) + _car_stack_start = .; + _car_stack_end = _car_region_end; +#endif _car_region_end = . + CONFIG_DCACHE_RAM_SIZE - (. - _car_region_start); } |