mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
firmware: payloads: Optimize usage of "ALIGN"
Delete the redundant "ALIGN" and adjust the position of "ALIGN" Signed-off-by: Leizheng Zhang <zhangleizheng@eswincomputing.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Bin Meng <bmeng@tinylab.org>
This commit is contained in:

committed by
Anup Patel

parent
14f5c4cb4d
commit
8e63716c1c
@@ -24,14 +24,12 @@
|
|||||||
PROVIDE(_text_end = .);
|
PROVIDE(_text_end = .);
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
|
||||||
|
|
||||||
/* End of the code sections */
|
/* End of the code sections */
|
||||||
|
|
||||||
/* Beginning of the read-only data sections */
|
|
||||||
|
|
||||||
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
||||||
|
|
||||||
|
/* Beginning of the read-only data sections */
|
||||||
|
|
||||||
.rodata :
|
.rodata :
|
||||||
{
|
{
|
||||||
PROVIDE(_rodata_start = .);
|
PROVIDE(_rodata_start = .);
|
||||||
@@ -42,10 +40,10 @@
|
|||||||
|
|
||||||
/* End of the read-only data sections */
|
/* End of the read-only data sections */
|
||||||
|
|
||||||
/* Beginning of the read-write data sections */
|
|
||||||
|
|
||||||
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
||||||
|
|
||||||
|
/* Beginning of the read-write data sections */
|
||||||
|
|
||||||
.data :
|
.data :
|
||||||
{
|
{
|
||||||
PROVIDE(_data_start = .);
|
PROVIDE(_data_start = .);
|
||||||
|
@@ -33,14 +33,12 @@ SECTIONS
|
|||||||
PROVIDE(_text_end = .);
|
PROVIDE(_text_end = .);
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
|
||||||
|
|
||||||
/* End of the code sections */
|
/* End of the code sections */
|
||||||
|
|
||||||
/* Beginning of the read-only data sections */
|
|
||||||
|
|
||||||
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
||||||
|
|
||||||
|
/* Beginning of the read-only data sections */
|
||||||
|
|
||||||
.rodata :
|
.rodata :
|
||||||
{
|
{
|
||||||
PROVIDE(_rodata_start = .);
|
PROVIDE(_rodata_start = .);
|
||||||
@@ -51,10 +49,10 @@ SECTIONS
|
|||||||
|
|
||||||
/* End of the read-only data sections */
|
/* End of the read-only data sections */
|
||||||
|
|
||||||
/* Beginning of the read-write data sections */
|
|
||||||
|
|
||||||
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
||||||
|
|
||||||
|
/* Beginning of the read-write data sections */
|
||||||
|
|
||||||
.data :
|
.data :
|
||||||
{
|
{
|
||||||
PROVIDE(_data_start = .);
|
PROVIDE(_data_start = .);
|
||||||
|
Reference in New Issue
Block a user