X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=src%2Fmodel%2Fsection-in-segment.c;h=0e513e23d82409a647afa3a3c3ed8342e6f199f3;hb=29dfd585e8f8d87d978259919f74815493899f01;hp=ad7f037f4fd20ea22c9588b2dbec2b03c075dbb6;hpb=f4d5a2e8d569d68fe4fa536e4ce9c3aee7c9285c;p=centaur.git diff --git a/src/model/section-in-segment.c b/src/model/section-in-segment.c index ad7f037..0e513e2 100644 --- a/src/model/section-in-segment.c +++ b/src/model/section-in-segment.c @@ -44,7 +44,7 @@ ElfuScn* elfu_mScnLastInSegment(ElfuElf *me, ElfuPhdr *mp) CIRCLEQ_FOREACH(ms, &me->scnList, elem) { /* Get section size on disk - for NOBITS sections that is 0 bytes. */ - size_t size = elfu_gScnSizeFile(&ms->shdr); + size_t size = SCNFILESIZE(&ms->shdr); if (((ms->shdr.sh_offset + size >= mp->phdr.p_offset) && (ms->shdr.sh_offset + size <= mp->phdr.p_offset + mp->phdr.p_filesz))) {