Move and rename ARCH_STAGE_HAS_xxx_SECTION rules
Currently only x86 requires special handling here, for simplicity avoid introducing <arch/rules.h> and deal with this directly in <rules.h>. For consistency prefixes are changed from ARCH_ to ENV_. Change-Id: I95a56dbad3482202f6cc03043589bebfb13c39af Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35014 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
@ -85,7 +85,7 @@
|
||||
#endif
|
||||
|
||||
/* Include data, bss, and heap in that order. Not defined for all stages. */
|
||||
#if ARCH_STAGE_HAS_DATA_SECTION
|
||||
#if ENV_STAGE_HAS_DATA_SECTION
|
||||
.data . : {
|
||||
. = ALIGN(ARCH_CACHELINE_ALIGN_SIZE);
|
||||
_data = .;
|
||||
@ -125,7 +125,7 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ARCH_STAGE_HAS_BSS_SECTION
|
||||
#if ENV_STAGE_HAS_BSS_SECTION
|
||||
.bss . : {
|
||||
. = ALIGN(ARCH_POINTER_ALIGN_SIZE);
|
||||
_bss = .;
|
||||
@ -138,7 +138,7 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ARCH_STAGE_HAS_HEAP_SECTION
|
||||
#if ENV_STAGE_HAS_HEAP_SECTION
|
||||
.heap . : {
|
||||
. = ALIGN(ARCH_POINTER_ALIGN_SIZE);
|
||||
_heap = .;
|
||||
|
Reference in New Issue
Block a user