Added pass to verify structure of dex file.

When a dex file is first opened, this pass runs through to make sure
sizes and offsets of the various sections of the dex file match the
header and don't overlap.

Change-Id: I4900c9665d6572ccfca2fe5f79d5d48ce7252036
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 02d9acb..5cd300e 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -581,6 +581,16 @@
     // change process groups, so we don't get reaped by ProcessManager
     setpgid(0, 0);
 
+    VLOG(class_linker) << dex2oat
+                       << " --runtime-arg -Xms64m"
+                       << " --runtime-arg -Xmx64m"
+                       << " --runtime-arg -classpath"
+                       << " --runtime-arg " << class_path
+                       << " " << boot_image_option
+                       << " " << dex_file_option
+                       << " " << oat_fd_option
+                       << " " << oat_name_option;
+
     execl(dex2oat, dex2oat,
           "--runtime-arg", "-Xms64m",
           "--runtime-arg", "-Xmx64m",