]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 28 Oct 2012 16:56:06 +0000 (17:56 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 28 Oct 2012 16:56:06 +0000 (17:56 +0100)
libdw/dwarf_getcfi_elf.c
libdwfl/dwfl_module_dwarf_cfi.c

index a5d9aec800b1010dd37dba289dd240840ed10933..ba00e05efd98e2b385205b3b75c6dcce2528cd08 100644 (file)
@@ -223,7 +223,7 @@ getcfi_scn_eh_frame (Elf *elf, const GElf_Ehdr *ehdr,
       if (hdr_scn != NULL)
        {
          Elf_Data *hdr_data = elf_rawdata (hdr_scn, NULL);
-         if (hdr_data != NULL && hdr_data->d_buf != NULL)
+         if (hdr_data != NULL)
            {
              GElf_Addr eh_frame_vaddr;
              cfi->search_table_vaddr = hdr_vaddr;
index 05f38182914e79e007e90b629681e905e7672fd0..5182d6a0ba44e15eee34cb740733546ea1959abc 100644 (file)
@@ -33,13 +33,6 @@ Dwarf_CFI *
 internal_function
 __libdwfl_set_cfi (Dwfl_Module *mod, Dwarf_CFI **slot, Dwarf_CFI *cfi)
 {
-  /* SHT_NOBITS gets read in this way.  */
-  if (cfi != NULL && cfi->data->d.d_buf == NULL)
-    {
-      free (cfi);
-      cfi = NULL;
-    }
-
   if (cfi != NULL && cfi->ebl == NULL)
     {
       Dwfl_Error error = __libdwfl_module_getebl (mod);