arm-trusted-firmware/bl2u
Andrey Skvortsov 3d6edc325c feat(build): check that .text section starts at page boundary
Linker may decide to put new unspecified sections before .text
section. That will cause non-working image, because entry point isn't
at __BLXX_START__. Device just not booted with such image.

This happened for example with .note.gnu.build-id section generated
for LTO build in some cases. Now linker will report this situation as
an error.

```
/usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: .text is not aligned on a page boundary.
collect2: error: ld returned 1 exit status
```

Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Change-Id: I5ae46ddd1e6e431e1df1715d1d301f6dd7181cc7
2023-11-06 23:22:25 +03:00
..
aarch32 feat(debug): add helpers for aborts on AARCH32 2022-10-03 14:42:40 +02:00
aarch64 Avoid the use of linker *_SIZE__ macros 2021-04-21 15:05:57 +02:00
bl2u.ld.S feat(build): check that .text section starts at page boundary 2023-11-06 23:22:25 +03:00
bl2u.mk build(bl2u): sort sections by alignment by default 2023-04-17 17:15:34 +01:00
bl2u_main.c Fix MISRA C issues in BL1/BL2/BL31 2020-04-03 16:20:59 -05:00