media/webrtc/trunk/build/linux/dump_app_syms

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rwxr-xr-x

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 #!/bin/sh
     3 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
     4 # Use of this source code is governed by a BSD-style license that can be
     5 # found in the LICENSE file.
     6 #
     7 # Helper script to run dump_syms on Chrome Linux executables and strip
     8 # them if needed.
    10 set -e
    12 usage() {
    13   echo -n "$0 <dump_syms_exe> <strip_binary> " >&2
    14   echo "<binary_with_symbols> <symbols_output>" >&2
    15 }
    18 if [ $# -ne 4 ]; then
    19   usage
    20   exit 1
    21 fi
    23 SCRIPTDIR="$(readlink -f "$(dirname "$0")")"
    24 DUMPSYMS="$1"
    25 STRIP_BINARY="$2"
    26 INFILE="$3"
    27 OUTFILE="$4"
    29 # Dump the symbols from the given binary.
    30 if [ ! -e "$OUTFILE" -o "$INFILE" -nt "$OUTFILE" ]; then
    31   "$DUMPSYMS" "$INFILE" > "$OUTFILE"
    32 fi
    34 if [ "$STRIP_BINARY" != "0" ]; then
    35   strip "$INFILE"
    36 fi

mercurial