Commits

Anonymous committed 855a44b

fixup linux build after darwin changes

  • Participants
  • Parent commits 1d8399d
  • Branches onering

Comments (0)

Files changed (2)

File dwarf-read.c

  */
 #include "impl.h"
 #include "gimli_dwarf.h"
+static gimli_addr_t calc_reloc(gimli_mapped_object_t f);
 
 struct dw_die_arange {
   uint64_t addr;
   pc -= f->base_addr;
 #else
   if (!gimli_object_is_executable(f->elf)) {
-    pc -= m->base; // FIXME: f->base_addr?
+    pc -= calc_reloc(f);
   }
 #endif
 
 
   snprintf(name, sizeof(name), "/proc/%d/mem", proc->pid);
   proc->proc_mem = open(name, O_RDWR);
-  proc->proc_mem_supports_mmap = -1; /* don't know yet */
   if (proc->proc_mem == -1) {
     fprintf(stderr, "failed to open %s: %s\n", name, strerror(errno));
     return GIMLI_ERR_CHECK_ERRNO;