+2008-01-20 Roland McGrath <roland@redhat.com>
+
+ * elf_getaroff.c: Calculate from start_offset, instead of using
+ parent's state.ar.offset field.
+
2008-01-08 Roland McGrath <roland@redhat.com>
* Makefile.am (euinclude): Variable removed.
/* Return offset in archive for current file ELF.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2008 Red Hat, Inc.
This file is part of Red Hat elfutils.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2005.
Elf *parent = elf->parent;
assert (parent->kind == ELF_K_AR);
- return parent->state.ar.offset;
+ return elf->start_offset - sizeof (struct ar_hdr) - parent->start_offset;
}