From b140f92531396c1087b997852d7ece18429b79d1 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 22 Nov 2017 18:58:31 +0100 Subject: [PATCH] iOS, remove unused script. This script is no longer used for the iOS development, and in order to prevent anybody wasting time porting it, it is nuked. Change-Id: I46d520fa9b8aeabee78cfe1f02a25e4d1ead3d7f --- bin/ios-mapfile-statistics | 78 -------------------------------------- 1 file changed, 78 deletions(-) delete mode 100755 bin/ios-mapfile-statistics diff --git a/bin/ios-mapfile-statistics b/bin/ios-mapfile-statistics deleted file mode 100755 index 07f3f0aa68b4..000000000000 --- a/bin/ios-mapfile-statistics +++ /dev/null @@ -1,78 +0,0 @@ -#!/usr/bin/perl -w - -use strict; - -use Getopt::Std; -$Getopt::Std::STANDARD_HELP_VERSION++; - -my %args; - -getopts('f:s', \%args); - -sub VERSION_MESSAGE { - # Nothing -} - -sub HELP_MESSAGE { - print <) { - if ($state == 0 && m!^# Object files:!) { - $state = 1; - } elsif ($state == 1 && m!^\[ *([0-9]+)\] .*/([-_a-z0-9]+\.a)\(.*!i) { - $libofnumber{$1} = $2; - } elsif ($state == 1 && m!^# Sections:!) { - $state = 2; - } elsif ($state == 2 && m!^# Address\s+Size\s+File\s+Name!) { - $state = 3; - } elsif ($state == 3 && m!^0x[0-9A-F]+\s+(0x[0-9A-F]+)\s+\[ *([0-9]+)\] (.*)!) { - my ($size,$libnum,$symbol) = ($1, $2, $3); - if (defined($libofnumber{$libnum})) { - $sizeoflib{$libofnumber{$libnum}} += hex($size); - if (!defined($args{'f'}) || $libofnumber{$libnum} =~ /$args{'f'}/) { - $sizeofsym{$symbol} = hex($size); - } - } - } -} - -if ($args{'s'}) { - # Print symbols in reverse size order - foreach (sort { $sizeofsym{$b} <=> $sizeofsym{$a} } keys(%sizeofsym)) { - print $_, ": ", $sizeofsym{$_}, "\n"; - } -} else { - # Print libraries in reverse size order - foreach (sort { $sizeoflib{$b} <=> $sizeoflib{$a} } keys(%sizeoflib)) { - print $_, ": ", $sizeoflib{$_}, "\n"; - } -} -