"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "output/outcoff.c" between
nasm-2.15.04.tar.xz and nasm-2.15.05.tar.xz

About: NASM (Netwide Assembler) is an 80x86 and x86-64 assembler designed for portability and modularity. It supports a range of object file formats including Linux and *BSD a.out, ELF, COFF, Mach-O, Microsoft 16-bit OBJ, Win32 and Win64. It supports all currently known x86 architectural extensions, and has strong support for macros.

outcoff.c  (nasm-2.15.04.tar.xz):outcoff.c  (nasm-2.15.05.tar.xz)
skipping to change at line 43 skipping to change at line 43
/* /*
* outcoff.c output routines for the Netwide Assembler to produce * outcoff.c output routines for the Netwide Assembler to produce
* COFF object files (for DJGPP and Win32) * COFF object files (for DJGPP and Win32)
*/ */
#include "compiler.h" #include "compiler.h"
#include "nctype.h" #include "nctype.h"
#include <time.h> #include <time.h>
#include "ver.h"
#include "nasm.h" #include "nasm.h"
#include "nasmlib.h" #include "nasmlib.h"
#include "ilog2.h" #include "ilog2.h"
#include "error.h" #include "error.h"
#include "saa.h" #include "saa.h"
#include "raa.h" #include "raa.h"
#include "eval.h" #include "eval.h"
#include "outform.h" #include "outform.h"
#include "outlib.h" #include "outlib.h"
skipping to change at line 938 skipping to change at line 939
/* /*
* Output the COFF header. * Output the COFF header.
*/ */
if (win64) if (win64)
i = IMAGE_FILE_MACHINE_AMD64; i = IMAGE_FILE_MACHINE_AMD64;
else else
i = IMAGE_FILE_MACHINE_I386; i = IMAGE_FILE_MACHINE_I386;
fwriteint16_t(i, ofile); /* machine type */ fwriteint16_t(i, ofile); /* machine type */
fwriteint16_t(coff_nsects, ofile); /* number of sections */ fwriteint16_t(coff_nsects, ofile); /* number of sections */
fwriteint32_t(time(NULL), ofile); /* time stamp */ fwriteint32_t(posix_timestamp(), ofile); /* timestamp */
fwriteint32_t(sympos, ofile); fwriteint32_t(sympos, ofile);
fwriteint32_t(coff_nsyms + initsym, ofile); fwriteint32_t(coff_nsyms + initsym, ofile);
fwriteint16_t(0, ofile); /* no optional header */ fwriteint16_t(0, ofile); /* no optional header */
/* Flags: 32-bit, no line numbers. Win32 doesn't even bother with them. */ /* Flags: 32-bit, no line numbers. Win32 doesn't even bother with them. */
fwriteint16_t((win32 | win64) ? 0 : 0x104, ofile); fwriteint16_t((win32 | win64) ? 0 : 0x104, ofile);
/* /*
* Output the section headers. * Output the section headers.
*/ */
vsize = 0L; vsize = 0L;
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)