Added support for disabling padding between segments for code

Fixed potential bug where code size is calculated by taking the page size of combined segments rather than the combined padded segment size. This could be a problem, for example, if two segments add up to require two pages of padding.
Fixed potential bug where memory-size is used for codeDetails.rwSize; this counts .bss which is not in the file
This commit is contained in:
Yifan Lu
2016-03-24 17:48:14 -05:00
parent 9dc611bbbf
commit cf2ba24d69
5 changed files with 27 additions and 7 deletions
+1
View File
@@ -267,6 +267,7 @@ typedef struct
char *exheaderPath; // for .code details
char *plainRegionPath; // prebuilt Plain Region
char *romfsPath; // Prebuild _cleartext_ romfs binary
bool noCodePadding; // do not pad code.bin for sysmodule
bool useSecCrypto;
u8 keyXID;