]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/bfd-in2.h
elf: Use mmap to map in read-only sections
[thirdparty/binutils-gdb.git] / bfd / bfd-in2.h
index b332f5adad18931574626323305d60e26eede90a..8b86607ec1da03b994690561ad25165a295dc05f 100644 (file)
@@ -1962,6 +1962,20 @@ enum bfd_lto_object_type
     lto_fat_ir_object          /* A fat LTO IR object.  */
   };
 
+struct bfd_mmapped_entry
+  {
+    void *addr;
+    size_t size;
+  };
+
+struct bfd_mmapped
+  {
+    struct bfd_mmapped *next;
+    unsigned int max_entry;
+    unsigned int next_entry;
+    struct bfd_mmapped_entry entries[1];
+  };
+
 struct bfd
 {
   /* The filename the application opened the BFD with.  */
@@ -2291,6 +2305,9 @@ struct bfd
 
   /* For input BFDs, the build ID, if the object has one. */
   const struct bfd_build_id *build_id;
+
+  /* For input BFDs, mmapped entries. */
+  struct bfd_mmapped *mmapped;
 };
 
 static inline const char *