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.
7 # Helper script to run dump_syms on Chrome Linux executables and strip
13 echo -n "$0 <dump_syms_exe> <strip_binary> " >&2
14 echo "<binary_with_symbols> <symbols_output>" >&2
23 SCRIPTDIR
="$(readlink -f "$
(dirname "$0")")"
29 # Dump the symbols from the given binary.
30 if [ ! -e "$OUTFILE" -o "$INFILE" -nt "$OUTFILE" ]; then
31 "$DUMPSYMS" -r "$INFILE" > "$OUTFILE"
34 if [ "$STRIP_BINARY" != "0" ]; then