summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-05-28 23:08:12 +0100
committerred031000 <rubenru09@aol.com>2020-05-28 23:08:12 +0100
commit3e888d6918d9c71ce35b0b00fa94e823cbd83455 (patch)
tree7c0325b112b3dcd28512d03b70d74d161b5bddad
parent4c3bc7f7584e7e728de5735f45bb2f92fca5bf71 (diff)
calcrom - count itcm as code and dtcm as data
-rw-r--r--.travis/calcrom/calcrom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis/calcrom/calcrom.cpp b/.travis/calcrom/calcrom.cpp
index 272bcf17..4feea349 100644
--- a/.travis/calcrom/calcrom.cpp
+++ b/.travis/calcrom/calcrom.cpp
@@ -102,8 +102,8 @@ int main(int argc, char ** argv)
// Analyze sections
for (Elf32_Shdr & hdr : shdr) {
string shname = shstrtab + hdr.sh_name;
- bool is_text = (shname == ".text" || shname == ".init");
- bool is_data = (shname == ".data" || shname == ".rodata" || shname == ".sdata");
+ bool is_text = (shname == ".text" || shname == ".init" || shname == ".itcm");
+ bool is_data = (shname == ".data" || shname == ".rodata" || shname == ".sdata" || shname == ".dtcm");
size_t size = hdr.sh_size + (hdr.sh_size & 3 ? 4 - (hdr.sh_size & 3) : 0);
if (is_text || is_data)
{