diff options
author | Chuck Crayne <ccrayne@users.sourceforge.net> | 2007-04-28 06:18:48 +0000 |
---|---|---|
committer | Chuck Crayne <ccrayne@users.sourceforge.net> | 2007-04-28 06:18:48 +0000 |
commit | 26d3de32171a05eb468d40329a838b4858f10538 (patch) | |
tree | a0440ee783bc5953c2a7d48f03649687f6940968 /nasmlib.c | |
parent | 8d7316a3ff3ff8b532b37e519994ed69e0abad03 (diff) | |
download | nasm-26d3de32171a05eb468d40329a838b4858f10538.tar.gz nasm-26d3de32171a05eb468d40329a838b4858f10538.tar.bz2 nasm-26d3de32171a05eb468d40329a838b4858f10538.zip |
Initial support for ELF64
Diffstat (limited to 'nasmlib.c')
-rw-r--r-- | nasmlib.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) { |