calcrom: pad section size to word
This commit is contained in:
@@ -18,6 +18,10 @@ while (my $line = <$file>)
|
|||||||
my $section = $1;
|
my $section = $1;
|
||||||
my $size = hex($2);
|
my $size = hex($2);
|
||||||
my $dir = $3;
|
my $dir = $3;
|
||||||
|
if ($size & 3)
|
||||||
|
{
|
||||||
|
$size += 4 - ($size % 3);
|
||||||
|
}
|
||||||
|
|
||||||
if ($section =~ /text/)
|
if ($section =~ /text/)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user