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/CacheWriter.h b/lib/bcc/CacheWriter.h
index b6d05f6..3e3f0af 100644
--- a/lib/bcc/CacheWriter.h
+++ b/lib/bcc/CacheWriter.h
@@ -48,13 +48,14 @@
     OBCC_ExportFuncList *mpExportFuncListSection;
     OBCC_PragmaList *mpPragmaListSection;
     OBCC_FuncTable *mpFuncTableSection;
+    OBCC_ObjectSlotList *mpObjectSlotSection;
 
   public:
     CacheWriter()
       : mpHeaderSection(NULL), mpStringPoolSection(NULL),
         mpDependencyTableSection(NULL), mpExportVarListSection(NULL),
         mpExportFuncListSection(NULL), mpPragmaListSection(NULL),
-        mpFuncTableSection(NULL) {
+        mpFuncTableSection(NULL), mpObjectSlotSection(NULL) {
     }
 
     ~CacheWriter();
@@ -78,6 +79,7 @@
     bool prepareExportFuncList();
     bool preparePragmaList();
     bool prepareFuncTable();
+    bool prepareObjectSlotList();
 
     bool writeAll();