]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Reorder some libdwflP.h struct members for optimal packing.
authorRoland McGrath <roland@redhat.com>
Wed, 8 Jul 2009 21:54:16 +0000 (14:54 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 8 Jul 2009 21:54:16 +0000 (14:54 -0700)
libdwfl/ChangeLog
libdwfl/libdwflP.h

index f2348e20c2e58812d76d10dfefe7904cab9aa5e8..223c6f04c2df82551036345d731f941b5dd5c1c7 100644 (file)
@@ -1,3 +1,7 @@
+2009-07-08  Roland McGrath  <roland@redhat.com>
+
+       * libdwflP.h (struct Dwfl_Module): Reorder members to pack better.
+
 2009-06-18  Mark Wielaard  <mjw@redhat.com>
 
        * dwfl_report_elf.c (__libdwfl_report_elf): Return NULL on overlap.
index be2ad828a2c1cda271da2c46448c278b5af859d4..fdd06d8952a32316911b6d0d78269ec0fecb1dc4 100644 (file)
@@ -151,10 +151,6 @@ struct Dwfl_Module
   char *name;                  /* Iterator name for this module.  */
   GElf_Addr low_addr, high_addr;
 
-  void *build_id_bits;         /* malloc'd copy of build ID bits.  */
-  GElf_Addr build_id_vaddr;    /* Address where they reside, 0 if unknown.  */
-  int build_id_len;            /* -1 for prior failure, 0 if unset.  */
-
   struct dwfl_file main, debug;
   Ebl *ebl;
   GElf_Half e_type;            /* GElf_Ehdr.e_type cache.  */
@@ -167,19 +163,25 @@ struct Dwfl_Module
   size_t syments;              /* sh_size / sh_entsize of that section.  */
   Elf_Data *symstrdata;                /* Data for its string table.  */
   Elf_Data *symxndxdata;       /* Data in the extended section index table. */
-  Dwfl_Error symerr;           /* Previous failure to load symbols.  */
 
   Dwarf *dw;                   /* libdw handle for its debugging info.  */
-  Dwfl_Error dwerr;            /* Previous failure to load info.  */
+
+  Dwfl_Error symerr;           /* Previous failure to load symbols.  */
+  Dwfl_Error dwerr;            /* Previous failure to load DWARF.  */
 
   /* Known CU's in this module.  */
   struct dwfl_cu *first_cu, **cu;
-  unsigned int ncu;
 
   void *lazy_cu_root;          /* Table indexed by Dwarf_Off of CU.  */
-  unsigned int lazycu;         /* Possible users, deleted when none left.  */
 
   struct dwfl_arange *aranges; /* Mapping of addresses in module to CUs.  */
+
+  void *build_id_bits;         /* malloc'd copy of build ID bits.  */
+  GElf_Addr build_id_vaddr;    /* Address where they reside, 0 if unknown.  */
+  int build_id_len;            /* -1 for prior failure, 0 if unset.  */
+
+  unsigned int ncu;
+  unsigned int lazycu;         /* Possible users, deleted when none left.  */
   unsigned int naranges;
 
   int segment;                 /* Index of first segment table entry.  */