nasmlib: allow writing of sparse files
commite65e81b172ceed17621c0f0ca4392a531018071e
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 18 Feb 2016 22:24:40 +0000 (18 14:24 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 18 Feb 2016 22:24:40 +0000 (18 14:24 -0800)
treee019ca547c7a00e9cbd3917960f0064d7030c2e4
parent28ec7d1ddfbf3f1d01a03c772132ba1b9fa08d50
nasmlib: allow writing of sparse files

On systems that support it, allow the writing of sparse files.
This can be useful for some file formats (like binary, or ELF if the
alignments are very large) that can contain large amounts of zeroes.

This is not inherently portable code, so condition it on certain known
systems.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
configure.in
nasmlib.c
nasmlib.h