summaryrefslogtreecommitdiffstats
path: root/tools/unused-symbols-report.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/unused-symbols-report.py')
-rwxr-xr-xtools/unused-symbols-report.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/unused-symbols-report.py b/tools/unused-symbols-report.py
index 12eb053..900bf16 100755
--- a/tools/unused-symbols-report.py
+++ b/tools/unused-symbols-report.py
@@ -1,9 +1,9 @@
-#!/usr/bin/python
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+#!/usr/bin/env python
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""Print a report of symbols stripped by the linker due to being unused.
+"""Prints a report of symbols stripped by the linker due to being unused.
To use, build with these linker flags:
-Wl,--gc-sections
@@ -166,5 +166,6 @@ def main():
only_paths=opts.only_paths)
Output(iter)
+
if __name__ == '__main__':
main()