OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright 2010 The Native Client Authors. All rights reserved. | 3 # Copyright 2010 The Native Client Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can | 4 # Use of this source code is governed by a BSD-style license that can |
5 # be found in the LICENSE file. | 5 # be found in the LICENSE file. |
6 | 6 |
7 import getopt | 7 import getopt |
8 import sys | 8 import sys |
9 | 9 |
10 import elf | 10 import elf |
11 | 11 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 if attribute is None: | 97 if attribute is None: |
98 DumpSegments(elf_obj) | 98 DumpSegments(elf_obj) |
99 else: | 99 else: |
100 CheckSegments(elf_obj, attribute, segment, flags, divisor, remainder) | 100 CheckSegments(elf_obj, attribute, segment, flags, divisor, remainder) |
101 | 101 |
102 return 0 | 102 return 0 |
103 | 103 |
104 | 104 |
105 if __name__ == '__main__': | 105 if __name__ == '__main__': |
106 sys.exit(main(sys.argv)) | 106 sys.exit(main(sys.argv)) |
OLD | NEW |