From 26d3de32171a05eb468d40329a838b4858f10538 Mon Sep 17 00:00:00 2001 From: Chuck Crayne Date: Sat, 28 Apr 2007 06:18:48 +0000 Subject: Initial support for ELF64 --- nasmlib.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nasmlib.c') diff --git a/nasmlib.c b/nasmlib.c index 7df08bde..fd388128 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) { -- cgit v1.2.1