diff options
author | Leizheng Zhang <zhangleizheng@eswincomputing.com> | 2022-11-21 16:26:22 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-11-22 11:20:11 +0530 |
commit | 8e63716c1ce0ff5f8b5c3c2b515a3f1cda21f580 (patch) | |
tree | 5af5e5d9fafcbff8a9a247cb8a950fd73900b161 /firmware | |
parent | 14f5c4cb4d2b9a5839a156c957f77a19a2f3eda7 (diff) | |
download | opensbi-8e63716c1ce0ff5f8b5c3c2b515a3f1cda21f580.zip opensbi-8e63716c1ce0ff5f8b5c3c2b515a3f1cda21f580.tar.gz opensbi-8e63716c1ce0ff5f8b5c3c2b515a3f1cda21f580.tar.bz2 |
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>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/fw_base.ldS | 10 | ||||
-rw-r--r-- | firmware/payloads/test.elf.ldS | 10 |
2 files changed, 8 insertions, 12 deletions
diff --git a/firmware/fw_base.ldS b/firmware/fw_base.ldS index 220c043..563ae25 100644 --- a/firmware/fw_base.ldS +++ b/firmware/fw_base.ldS @@ -24,14 +24,12 @@ 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 = .); @@ -42,10 +40,10 @@ /* 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 = .); diff --git a/firmware/payloads/test.elf.ldS b/firmware/payloads/test.elf.ldS index f3f3242..2328a1b 100644 --- a/firmware/payloads/test.elf.ldS +++ b/firmware/payloads/test.elf.ldS @@ -33,14 +33,12 @@ SECTIONS 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 = .); @@ -51,10 +49,10 @@ SECTIONS /* 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 = .); |