diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2011-04-17 18:37:27 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2011-04-17 18:37:27 +0000 |
commit | 8bff25945bfceaeace132998aa98f6d1022aa3e9 (patch) | |
tree | e3843eadb27d264a2323fb73ca3accd17db5d644 /utils/sbtools | |
parent | 8a8d77b8e572502a37bdcbb058dece745f911fcf (diff) | |
download | rockbox-8bff25945bfceaeace132998aa98f6d1022aa3e9.tar.gz rockbox-8bff25945bfceaeace132998aa98f6d1022aa3e9.zip |
sbtoslf: command size doesn't include itself, but section can be padded with random data
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29740 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/sbtools')
-rw-r--r-- | utils/sbtools/sbtoelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sbtools/sbtoelf.c b/utils/sbtools/sbtoelf.c index b430e07eb7..54daf7bc1f 100644 --- a/utils/sbtools/sbtoelf.c +++ b/utils/sbtools/sbtoelf.c | |||
@@ -595,7 +595,7 @@ static void extract(unsigned long filesize) | |||
595 | char name[5]; | 595 | char name[5]; |
596 | fill_section_name(name, tag->identifier); | 596 | fill_section_name(name, tag->identifier); |
597 | int pos = offset; | 597 | int pos = offset; |
598 | int size = (tag->len - 1) * BLOCK_SIZE; /* command include itself */ | 598 | int size = tag->len * BLOCK_SIZE; |
599 | int data_sec = !(tag->flags & SECTION_BOOTABLE); | 599 | int data_sec = !(tag->flags & SECTION_BOOTABLE); |
600 | int encrypted = !(tag->flags & SECTION_CLEARTEXT); | 600 | int encrypted = !(tag->flags & SECTION_CLEARTEXT); |
601 | 601 | ||