Add BCC support for rs_object_slots metadata.

This is added to support proper cleanup of RS resources. We were leaking some
global resources because there was no way to tell which slots to clear.

Change-Id: I3e01ff4f7105444b7610d514f10dd56cb1b359b8
b: 3381615
diff --git a/lib/bcc/CacheReader.cpp b/lib/bcc/CacheReader.cpp
index 387e094..a8e252b 100644
--- a/lib/bcc/CacheReader.cpp
+++ b/lib/bcc/CacheReader.cpp
@@ -80,6 +80,7 @@
              && readExportFuncList()
              && readPragmaList()
              && readFuncTable()
+             && readObjectSlotList()
              && readContext()
              && checkContext()
              //&& readRelocationTable()
@@ -384,6 +385,13 @@
 }
 
 
+bool CacheReader::readObjectSlotList() {
+  CACHE_READER_READ_SECTION(OBCC_ObjectSlotList,
+                            mpResult->mpObjectSlotList, object_slot_list);
+  return true;
+}
+
+
 bool CacheReader::readFuncTable() {
   CACHE_READER_READ_SECTION(OBCC_FuncTable, mpFuncTable, func_table);