From: Roland McGrath Date: Mon, 21 Jan 2008 01:39:56 +0000 (+0000) Subject: propagate from branch 'com.redhat.elfutils' (head fdd0e4957136e12a03ac29445d116d7fcf6... X-Git-Tag: elfutils-0.132~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51b3032ea91e5f7e39ff2a60e26ec06e9a17cbfe;p=thirdparty%2Felfutils.git propagate from branch 'com.redhat.elfutils' (head fdd0e4957136e12a03ac29445d116d7fcf6fdd02) to branch 'com.redhat.elfutils.roland.pending' (head ba30c6e5cab6b9316a77ed1c6e8353c0bab892ac) --- diff --git a/libelf/ChangeLog b/libelf/ChangeLog index df73af01d..0688cbdbe 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,8 @@ +2008-01-20 Roland McGrath + + * elf_getaroff.c: Calculate from start_offset, instead of using + parent's state.ar.offset field. + 2008-01-08 Roland McGrath * Makefile.am (euinclude): Variable removed. diff --git a/libelf/elf_getaroff.c b/libelf/elf_getaroff.c index f8b426e72..8dea06143 100644 --- a/libelf/elf_getaroff.c +++ b/libelf/elf_getaroff.c @@ -1,5 +1,5 @@ /* 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 , 2005. @@ -71,5 +71,5 @@ elf_getaroff (elf) 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; }