loader: refactor

This commit is contained in:
CTCaer committed 2022-12-19 04:31:54 +02:00
1 parent c86554e954
commit 24795891ec
3 files changed
+29 -20

No files matched your search

+8
View File
@@ -15,6 +15,14 @@ SECTIONS {
*(.rodata*);
*(._payload_00);
*(._payload_01);
/*
* To mitigate bad injectors/chainloaders,
* miss-align binary size to account for version info.
* !If version text is not appended, then use ". = ALIGN(4)"!
*/
data_end_ua = .;
. = ((data_end_ua + 0x6 + 4 - 1) & ~(4 - 1)) - 6;
}
__ldr_end = .;
. = ALIGN(0x10);