summaryrefslogtreecommitdiffstats
path: root/oatdump
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2016-03-08 13:21:22 +0000
committerDavid Srbecky <dsrbecky@google.com>2016-03-08 13:46:37 +0000
commit5d8112029d0e085c5a0099257daa4c7e29c12310 (patch)
treeb98a1b83095ebd34feb3140e6910ec7e830bce0a /oatdump
parent8a8c84114b16b8971bc2d3c5c7e0e31470d1a68b (diff)
downloadart-5d8112029d0e085c5a0099257daa4c7e29c12310.tar.gz
art-5d8112029d0e085c5a0099257daa4c7e29c12310.tar.bz2
art-5d8112029d0e085c5a0099257daa4c7e29c12310.zip
Propagate InstructionSetFeatures to ElfBuilder.
This is subset of CL171665 and it separates it into two. It will be needed to generate .MIPS.abiflags ELF section. Change-Id: I5557e7cb98d0fa1dc57c85cf6161e119c6d50a1a
Diffstat (limited to 'oatdump')
-rw-r--r--oatdump/oatdump.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index c1875366e9..b52f30ec33 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -115,11 +115,13 @@ class OatSymbolizer FINAL {
bool Symbolize() {
const InstructionSet isa = oat_file_->GetOatHeader().GetInstructionSet();
+ const InstructionSetFeatures* features = InstructionSetFeatures::FromBitmap(
+ isa, oat_file_->GetOatHeader().GetInstructionSetFeaturesBitmap());
File* elf_file = OS::CreateEmptyFile(output_name_.c_str());
std::unique_ptr<BufferedOutputStream> output_stream(
MakeUnique<BufferedOutputStream>(MakeUnique<FileOutputStream>(elf_file)));
- builder_.reset(new ElfBuilder<ElfTypes32>(isa, output_stream.get()));
+ builder_.reset(new ElfBuilder<ElfTypes32>(isa, features, output_stream.get()));
builder_->Start();