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