diff options
author | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2013-11-27 09:38:52 +0000 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2013-12-05 11:33:15 +0000 |
commit | 8d69a03f6a7db3c437b7cfdd15402627277d8cb4 (patch) | |
tree | a74ad7b72757ed85d084bf50ce20feb4164c2eb6 /include | |
parent | 3e850a84c94a5f1bc0141041ad32be94460716f7 (diff) |
Various improvements/cleanups on the linker scripts
- Check at link-time that bootloader images will fit in memory
at run time and that they won't overlap each other.
- Remove text and rodata orphan sections.
- Define new linker symbols to remove the need for platform setup
code to know the order of sections.
- Reduce the size of the raw binary images by cutting some sections
out of the disk image and allocating them at load time, whenever
possible.
- Rework alignment constraints on sections.
- Remove unused linker symbols.
- Homogenize linker symbols names across all BLs.
- Add some comments in the linker scripts.
Change-Id: I47a328af0ccc7c8ab47fcc0dc6e7dd26160610b9
Diffstat (limited to 'include')
-rw-r--r-- | include/aarch64/arch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/aarch64/arch.h b/include/aarch64/arch.h index 3a23e4f..055a745 100644 --- a/include/aarch64/arch.h +++ b/include/aarch64/arch.h @@ -248,6 +248,8 @@ #define OSH (0x2 << 6) #define ISH (0x3 << 6) +#define IS_PAGE_ALIGNED(addr) (((addr) & 0xFFF) == 0) + /* * AP[1] bit is ignored by hardware and is * treated as if it is One in EL2/EL3 |