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>
PROVIDE(_text_end = .);
}
- . = ALIGN(0x1000); /* Ensure next section is page aligned */
-
/* End of the code sections */
- /* Beginning of the read-only data sections */
-
. = ALIGN(0x1000); /* Ensure next section is page aligned */
+ /* Beginning of the read-only data sections */
+
.rodata :
{
PROVIDE(_rodata_start = .);
/* End of the read-only data sections */
- /* Beginning of the read-write data sections */
-
. = ALIGN(0x1000); /* Ensure next section is page aligned */
+ /* Beginning of the read-write data sections */
+
.data :
{
PROVIDE(_data_start = .);
PROVIDE(_text_end = .);
}
- . = ALIGN(0x1000); /* Ensure next section is page aligned */
-
/* End of the code sections */
- /* Beginning of the read-only data sections */
-
. = ALIGN(0x1000); /* Ensure next section is page aligned */
+ /* Beginning of the read-only data sections */
+
.rodata :
{
PROVIDE(_rodata_start = .);
/* End of the read-only data sections */
- /* Beginning of the read-write data sections */
-
. = ALIGN(0x1000); /* Ensure next section is page aligned */
+ /* Beginning of the read-write data sections */
+
.data :
{
PROVIDE(_data_start = .);