+2009-08-05 Roland McGrath <roland@redhat.com>
+
+ * elf_clone.c: Chain onto the ELF->parent->state.ar.children list.
+
2010-06-14 Ulrich Drepper <drepper@redhat.com>
* gelf_update_shdr.c: Implicitly set ELF_F_DIRTY bit.
/* Create clone of a given descriptor.
- Copyright (C) 2003, 2004 Red Hat, Inc.
+ Copyright (C) 2003, 2004, 2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2003.
retval->state.elf32.scns.max = elf->state.elf32.scns.max;
retval->class = elf->class;
+
+ if (retval->parent != NULL)
+ {
+ /* Enlist this new descriptor in the list of children. */
+ assert (retval->parent->kind == ELF_K_AR);
+ retval->next = retval->parent->state.ar.children;
+ retval->parent->state.ar.children = retval;
+ }
}
/* Release the lock. */