diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-01 23:29:03 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-01 23:29:03 +0000 |
commit | 05cb696a16d7d42a2e7c1c88238038acfb0b1ad3 (patch) | |
tree | dd0aee473968bc958dca382bff5272fe91d7b129 /build/linux/dump_app_syms | |
parent | 8ac2dc11280ad44e5fba538580a88a3b10d2f657 (diff) | |
download | chromium_src-05cb696a16d7d42a2e7c1c88238038acfb0b1ad3.zip chromium_src-05cb696a16d7d42a2e7c1c88238038acfb0b1ad3.tar.gz chromium_src-05cb696a16d7d42a2e7c1c88238038acfb0b1ad3.tar.bz2 |
Add (yet another) option to allow stripping the chrome binary after dumping symbols. Chromebot does not like 200MB zip files and 800MB chrome binaries.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/259008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27795 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/linux/dump_app_syms')
-rwxr-xr-x | build/linux/dump_app_syms | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/build/linux/dump_app_syms b/build/linux/dump_app_syms index 1bbb9bc..7043b10 100755 --- a/build/linux/dump_app_syms +++ b/build/linux/dump_app_syms @@ -10,19 +10,21 @@ set -e usage() { - echo "$0 <dump_syms_exe> <binary_with_symbols> <symbols_output>" >&2 + echo -n "$0 <dump_syms_exe> <strip_binary> " >&2 + echo "<binary_with_symbols> <symbols_output>" >&2 } -if [ $# -ne 3 ]; then +if [ $# -ne 4 ]; then usage exit 1 fi SCRIPTDIR="$(readlink -f "$(dirname "$0")")" DUMPSYMS="$1" -INFILE="$2" -OUTFILE="$3" +KEEP_STRIPPED_BINARY="$2" +INFILE="$3" +OUTFILE="$4" STRIPPED=$(mktemp -q -t stripped-XXXXX) if [ $? -ne 0 ]; then @@ -38,7 +40,11 @@ fi # Strip the binary and calculate the signature of that, since that's what ships. strip "$INFILE" -o "$STRIPPED" NEWSIG=$("$SCRIPTDIR/dump_signature.py" "$STRIPPED") -rm "$STRIPPED" +if [ "$KEEP_STRIPPED_BINARY" != "0" ]; then + mv "$STRIPPED" "$INFILE" +else + rm "$STRIPPED" +fi # Replace the old signature with the stripped signature in the symbols file. sed -i "1s/ [0-9A-F]* / $NEWSIG /" "$OUTFILE" |