+2010-06-14 Ulrich Drepper <drepper@redhat.com>
+
+ * gelf_update_shdr.c: Implicitly set ELF_F_DIRTY bit.
+ * gelf_update_phdr.c: Likewise.
+ * gelf_update_ehdr.c: Likewise.
+
2010-04-14 Roland McGrath <roland@redhat.com>
* elf32_getphdr.c: Check for e_phoff/size outside the file bounds.
2003-08-11 Ulrich Drepper <drepper@redhat.com>
- * Moved to CVS archive.
+ * Moved to CVS archive.
/* Update ELF header.
- Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
+ Copyright (C) 2000, 2001, 2002, 2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2000.
memcpy (ehdr, src, sizeof (Elf64_Ehdr));
}
+ /* Mark the ELF header as modified. */
+ elf->state.elf.ehdr_flags |= ELF_F_DIRTY;
+
result = 1;
out:
memcpy (phdr + ndx, src, sizeof (Elf64_Phdr));
}
+ /* Mark the program header as modified. */
+ elf->state.elf.phdr_flags |= ELF_F_DIRTY;
+
result = 1;
out:
/* Update section header.
- Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
+ Copyright (C) 2000, 2001, 2002, 2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2000.
(void) memcpy (shdr, src, sizeof (GElf_Shdr));
}
+ /* Mark the section header as modified. */
+ scn->shdr_flags |= ELF_F_DIRTY;
+
result = 1;
out: