From 18f7772c47f0720fbaa38a01e6892826705ec26f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 14 Sep 2017 19:05:05 -0700 Subject: Enable all reader features in objdump (#628) Objdump should really make a best effort to display anything its given. There are other tools that are better suited for validation. --- src/binary-reader-objdump.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/binary-reader-objdump.cc') diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 80196ce6..67b27cdc 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -1127,10 +1127,9 @@ Result ReadBinaryObjdump(const uint8_t* data, size_t size, ObjdumpOptions* options, ObjdumpState* state) { - ReadBinaryOptions read_options; - read_options.read_debug_names = true; - read_options.log_stream = options->log_stream; - read_options.features = options->features; + Features features; + features.EnableAll(); + ReadBinaryOptions read_options(features, options->log_stream, true); switch (options->mode) { case ObjdumpMode::Prepass: { -- cgit v1.2.3