Rename and improve emitSectionOffset.