Zong Li 00cb41d5ad
riscv: add alignment for text, rodata and data sections
The kernel mapping will tried to optimize its mapping by using bigger
size. In rv64, it tries to use PMD_SIZE, and tryies to use PGDIR_SIZE in
rv32. To ensure that the start address of these sections could fit the
mapping entry size, make them align to the biggest alignment.

Define a macro SECTION_ALIGN because the HPAGE_SIZE or PMD_SIZE, etc.,
are invisible in linker script.

This patch is prepared for STRICT_KERNEL_RWX support.

Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2020-03-26 09:24:42 -07:00
..
2019-06-17 10:34:03 -07:00
2019-10-23 14:53:46 -07:00
2019-11-17 15:17:39 -08:00
2019-11-17 15:17:39 -08:00
2019-11-17 15:17:39 -08:00
2019-11-17 15:17:39 -08:00
2019-10-28 00:46:01 -07:00
2020-01-22 13:09:58 -08:00
2019-11-28 10:57:12 -08:00
2019-11-17 15:17:39 -08:00
2019-11-17 15:17:39 -08:00
2020-01-22 13:09:58 -08:00
2019-11-17 15:17:39 -08:00
2019-11-17 15:17:39 -08:00