OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 """Run objcopy --add-gnu-debuglink for the NaCl IRT. |
| 7 """ |
| 8 |
| 9 import subprocess |
| 10 import sys |
| 11 |
| 12 |
| 13 def Main(args): |
| 14 objcopy, debug_file, stripped_file, output_file = args |
| 15 return subprocess.call([ |
| 16 objcopy, '--add-gnu-debuglink', debug_file, stripped_file, output_file |
| 17 ]) |
| 18 |
| 19 |
| 20 if __name__ == '__main__': |
| 21 sys.exit(Main(sys.argv[1:])) |
OLD | NEW |