diff options
author | Iliyan Malchev <> | 2009-03-24 19:58:48 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 19:58:48 -0700 |
commit | abcc91aef86a24b0b4f487267765cc40e6fb073e (patch) | |
tree | 3c03973ff3a75bec35ff7e404595d55317add74c | |
parent | ad7e3808a396fbe73d8735d7fb60a4d2fb77153b (diff) | |
download | elfcopy-abcc91aef86a24b0b4f487267765cc40e6fb073e.tar.gz |
Automated import from //branches/donutburger/...@141285,141285
-rw-r--r-- | elfcopy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |