summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-27 15:30:36 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-27 15:30:36 -0700
commitf1ad6320410eb6d6c0ff6b1684a92dad41733ec3 (patch)
tree3c03973ff3a75bec35ff7e404595d55317add74c
parent7246868f2f514641edc05d0b60affa13cb5eead4 (diff)
parentd974d0f8b7cf95e6faa43a5e131fdd2f91bd8d37 (diff)
downloadelfcopy-f1ad6320410eb6d6c0ff6b1684a92dad41733ec3.tar.gz
Merge commit 'korg/cupcake'
-rw-r--r--elfcopy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elfcopy.c b/elfcopy.c
index 540e3d7..03c9154 100644
--- a/elfcopy.c
+++ b/elfcopy.c
@@ -2160,7 +2160,7 @@ static Elf64_Off section_to_header_mapping(Elf *elf,
INFO("\n\t\t");
}
else
- INFO("(!) %-17s does not match\n\t\t", shdr_info[inner].name);
+ INFO("(!) %-17s does not belong\n\t\t", shdr_info[inner].name);
}
else
INFO("(!) %-17s is not considered, it is being removed\n\t\t", shdr_info[inner].name);
@@ -2778,7 +2778,7 @@ update_section_offsets(Elf *elf,
GElf_Off lastoffset = 0;
lastoffset += ehdr_size;
- lastoffset += (ehdr->e_phnum + 1) * ehdr->e_phentsize;
+ lastoffset += ehdr->e_phnum * ehdr->e_phentsize;
INFO("Section offsets will start from %lld.\n", lastoffset);
int start = 1, end = 1;