summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
authorChuck Crayne <ccrayne@users.sourceforge.net>2007-04-28 06:18:48 +0000
committerChuck Crayne <ccrayne@users.sourceforge.net>2007-04-28 06:18:48 +0000
commit26d3de32171a05eb468d40329a838b4858f10538 (patch)
treea0440ee783bc5953c2a7d48f03649687f6940968 /nasmlib.c
parent8d7316a3ff3ff8b532b37e519994ed69e0abad03 (diff)
downloadnasm-26d3de32171a05eb468d40329a838b4858f10538.tar.gz
nasm-26d3de32171a05eb468d40329a838b4858f10538.tar.bz2
nasm-26d3de32171a05eb468d40329a838b4858f10538.zip
Initial support for ELF64
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 7df08bd..fd38812 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -306,6 +306,18 @@ void fwriteint32_t(int32_t data, FILE * fp)
fputc((int)((data >> 24) & 255), fp);
}
+void fwriteint64_t(int64_t data, FILE * fp)
+{
+ fputc((int)(data & 255), fp);
+ fputc((int)((data >> 8) & 255), fp);
+ fputc((int)((data >> 16) & 255), fp);
+ fputc((int)((data >> 24) & 255), fp);
+ fputc((int)((data >> 32) & 255), fp);
+ fputc((int)((data >> 40) & 255), fp);
+ fputc((int)((data >> 48) & 255), fp);
+ fputc((int)((data >> 56) & 255), fp);
+}
+
void standard_extension(char *inname, char *outname, char *extension,
efunc error)
{