// TODO: Error handling
} else {
- injOffset = lastScn->shdr.sh_offset + elfu_gScnSizeFile(&lastScn->shdr);
+ injOffset = lastScn->shdr.sh_offset + SCNFILESIZE(&lastScn->shdr);
ELFU_INFO("Expanding at offset 0x%jx...\n",
injOffset);
/* Recalculate injOffset in case we expanded a NOBITS section */
lastScn = elfu_mScnLastInSegment(me, injAnchor);
- injOffset = lastScn->shdr.sh_offset + elfu_gScnSizeFile(&lastScn->shdr);
+ injOffset = lastScn->shdr.sh_offset + SCNFILESIZE(&lastScn->shdr);
ELFU_INFO("Inserting %s at offset 0x%jx...\n",
elfu_mScnName(mrel, ms),