base: Expose the ObjectFile class to python.

This will make it possible to inspect a binary and determine, for
example, what architecture or operating system it was compiled for.

Change-Id: Ib40f1e1c02448dc5bf084bb0dd98d3767f463fef
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33899
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2020-08-31 21:13:06 -07:00
parent a21573cef0
commit 7e8bc77353
4 changed files with 116 additions and 0 deletions

View File

@@ -69,4 +69,5 @@ PySource('m5.ext.pyfdt', 'm5/ext/pyfdt/__init__.py')
Source('pybind11/core.cc', add_tags='python')
Source('pybind11/debug.cc', add_tags='python')
Source('pybind11/event.cc', add_tags='python')
Source('pybind11/object_file.cc', add_tags='python')
Source('pybind11/stats.cc', add_tags='python')