diff --git a/bin/generate-zbm b/bin/generate-zbm index a0a488797..539436298 100755 --- a/bin/generate-zbm +++ b/bin/generate-zbm @@ -15,6 +15,7 @@ use File::stat; use File::Path qw(make_path remove_tree); use File::Glob qw(:globally :nocase); use Sort::Versions; +use bigint qw(hex); use Pod::Usage qw(pod2usage); @@ -804,9 +805,9 @@ sub createUEFIBundle { $status = pop(@output); if ( $status eq 0 ) { my @sizes = split( /\s+/, @output[ scalar @output - 1 ] ); + my $size = "0x" . $sizes[3]; my $vma = "0x" . $sizes[4]; - my $sum = hex($size) + hex($vma); $uki_offset = increaseBundleOffset( $sum, 0, $uki_alignment );