summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elfcopy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elfcopy.c b/elfcopy.c
index 1a32a59..ed1e6ce 100644
--- a/elfcopy.c
+++ b/elfcopy.c
@@ -1057,6 +1057,8 @@ void adjust_elf(Elf *elf, const char *elf_name,
INFO("PT_ header type: %d does not contain any sections.\n",
phdr_info[pi].p_type);
/* Move to the next program header. */
+ FAILIF_LIBELF(gelf_update_phdr (newelf, pi, &phdr_info[pi]) == 0,
+ gelf_update_phdr);
continue;
}