Add GC map to oat file

Change-Id: Ied0462c711a09e2542f231c3b2fa31239958bd28
diff --git a/test/ReferenceMap/stack_walk_refmap_jni.cc b/test/ReferenceMap/stack_walk_refmap_jni.cc
index 547f8c9..a85e4ee 100644
--- a/test/ReferenceMap/stack_walk_refmap_jni.cc
+++ b/test/ReferenceMap/stack_walk_refmap_jni.cc
@@ -36,7 +36,7 @@
     }
     LOG(INFO) << "At " << PrettyMethod(m, false);
 
-    verifier::PcToReferenceMap map(m);
+    verifier::PcToReferenceMap map(m->GetGcMap(), m->GetGcMapLength());
 
     if (!pc) {
       // pc == NULL: m is either a native method or a phony method
diff --git a/test/StackWalk/stack_walk_jni.cc b/test/StackWalk/stack_walk_jni.cc
index 5b3921d..a967835 100644
--- a/test/StackWalk/stack_walk_jni.cc
+++ b/test/StackWalk/stack_walk_jni.cc
@@ -38,7 +38,7 @@
       CHECK_EQ(pc, 0u);
       return;
     }
-    verifier::PcToReferenceMap map(m);
+    verifier::PcToReferenceMap map(m->GetGcMap(), m->GetGcMapLength());
     const uint8_t* reg_bitmap = map.FindBitMap(m->ToDexPC(pc));
     MethodHelper mh(m);
     StringPiece m_name(mh.GetName());