summaryrefslogtreecommitdiff
path: root/Mkfiles
AgeCommit message (Collapse)AuthorFilesLines
2012-02-03backend: add support for x32 ELFH.J. Lu4-0/+19
Add an x32 ELF (32-bit code with the CPU in 64-bit mode) backend.
2011-09-20BR3411280: Fix incorrect compiler option for OS/2 target in Open Watcom makefileJiri Malak1-1/+1
For OS2 target the -bt option should be set accordingly. Signed-off-by: Jiri Malak <malak.jiri@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-03-15openwcom.mak: Update to use features from newer WMAKEJiri Malak1-212/+260
Change the OpenWatcom WMAKE Makefile to use the facilities available in WMAKE to support cross-compilation properly. See BR 3079573.
2010-11-23make: Lift up openwcom.mak for build on FreeDOSAnthony Williams1-2/+2
Signed-off-by: Anthony Williams <rugxulo@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2010-06-15openwcom.mak: drop /f from delete commandsH. Peter Anvin1-30/+30
Classic DOS doesn't have del /f, and we don't really need it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-06-15Rename filenames to 8.3 formatH. Peter Anvin4-250/+244
Apparently some people still care about compiling native on MS-DOS, and we don't have a significant number of files which need adjustment. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-04-21Add generic ilog2 functionsH. Peter Anvin4-8/+17
Add ilog2_{32,64}() and alignlog2_{32,64}() ... the latter is intended for alignment statements and return -1 for non-power-of-2 other than 0 (which returns 0). Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-04-21Makefile: clean up the lib directory on make cleanH. Peter Anvin3-0/+9
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-04-21make: Update pecoff.h related depsCyrill Gorcunov4-4/+4
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2010-01-03Mkfiles: Add depends on stabs.h for Elf outputCyrill Gorcunov4-14/+14
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2009-11-30Run "make alldeps"H. Peter Anvin4-222/+230
2009-11-06Merge elf header filesCyrill Gorcunov4-13/+13
Merge elfcommon.h, elf32.h, elf64.h into single elf.h -- we do support both elf32 and elf64 anyway. Let put them into common place. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2009-08-10Add strlcpy() functionH. Peter Anvin4-33/+36
Add strlcpy() function and implementation, and use configure to detect if strlcpy() is natively available on the system. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-07-18Run make alldepsH. Peter Anvin4-56/+56
2009-07-12Hash even backend-specific directives, unify null functionsH. Peter Anvin4-337/+365
Hash all directives, even the ones that are backend-specific, and instead pass the backend an already-parsed directive number. Furthermore, unify null functions across various backends. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-07-12Use a phash to decode directivesH. Peter Anvin4-39/+69
We can use a perfect hash to decode directives as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-06-27Run make alldepsH. Peter Anvin4-16/+23
2009-06-27Move backend-specific code to output/; break out null debug stuffH. Peter Anvin4-88/+108
Move backend-specific code into the output/ directory, and make the null debugging backend a separate file (it certainly isn't needed for ndisasm...) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-06-25Handle the new ELF headers in the dependency generationH. Peter Anvin4-12/+28
The dependency machinery relies on properly rooted includes, so give it to them... the path syntax munging machinery in the dependency script handles it from a Makefile syntax perspective, and then we can hope that C compilers are smart enough to deal with forward-slash paths even when that is not the native syntax. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-11-06ELF: use rbtree for symbol searchesH. Peter Anvin4-8/+8
Linear searches are evil, so use an llrbtree to search for symbols by offset. This doesn't change the preexisting behaviour that we only look for global symbols. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-31Move all version strings to a single compilation unit (ver.c)H. Peter Anvin4-151/+160
Move all the version strings to a single compilation unit, ver.c; this does not include the version macros, which are fed into macros.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-30rbtree: drop the data pointer; instead rely on being embeddedH. Peter Anvin4-4/+4
Drop the data pointer, and instead assume the struct rbtree will be embedded in a bigger data structure (to be extracted via container_of()). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-29Left-leaning red-black tree data structureH. Peter Anvin4-4/+8
Implement library functions for "left-leaning red-black trees" with uint64_t keys. This is meant for looking up symbols by address in the backends that need to do so, e.g. ELF. A good question is if there is a better way to do this, that recovers the original symbol, but that's a future issue. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-29make alldepsH. Peter Anvin4-27/+28
Run "make alldeps" Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-27output: add common file outlib.c for common functions; realsize()H. Peter Anvin4-8/+16
Add a common file, outlib.c, for output formats. Add the function realsize() instead of open-coded variants in almost every backend. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-09-09Run "make alldeps"H. Peter Anvin4-4/+8
2008-07-13version.mak for the version Makefile fragmentH. Peter Anvin1-2/+2
Be consistent about the naming of the version Makefile fragment. We use .mak elsewhere for Makefiles, so use that.
2008-06-21Run "make alldeps"H. Peter Anvin4-157/+162
2008-06-19preproc: add support for builtin include modules (%use)H. Peter Anvin4-4/+4
Add a builtin equivalent to the %include directive called %use. %use includes a standard macro file compiled into the binary; these come from the macros/ directory in the source code. The idea here is to be able to provide optional macro packages with the distribution, without adding complex host filesystem dependencies.
2008-06-15syncfiles: use #-- ... --# for consistency with mkdep.plH. Peter Anvin4-8/+8
mkdep.pl already used #-- ... --# (two dashes) whereas syncfiles.pl was using #--- ... ---# (three dashes). Change syncfiles.pl to match mkdep.pl.
2008-06-15syncfiles: handle the case of the null path separatorH. Peter Anvin1-5/+5
Correctly handle the null path separator (meaning remove the directory portion entirely.)
2008-06-15Script to automagically synchronize the object file listsH. Peter Anvin4-15/+27
Add a script to automagically synchronize the list of object files between the various Makefiles.
2008-06-15Update Mkfiles/*.makH. Peter Anvin4-8/+8
Sync the file list in Mkfiles/*.mak
2008-06-14Implement __utf16__() and __utf32__() for the DB familyH. Peter Anvin4-4/+12
Implement __utf16__() and __utf32__() for the DB family of pseudo-instructions. Not yet implemented for evaluation context.
2008-06-09Move all the RAA code out of nasmlibH. Peter Anvin4-32/+36
The RAA code doesn't have to be in nasmlib; it is only used by nasm itself, and is better handled in a separate module.
2008-06-09Move all the SAA code out of nasmlibH. Peter Anvin4-36/+40
Move all the SAA code out of nasmlib; it's not used by anything than nasm itself. Cleaning out the kitchen sink known as nasmlib is a good thing, too.
2008-06-08Replace the WSAA macros with functionsH. Peter Anvin4-4/+8
Change the WSAA macros into functions; reducing the icache footprint.
2008-06-04Update .gitignore, remove bogus dependencyH. Peter Anvin4-4/+0
2008-06-04Makefile/dependency updatesH. Peter Anvin4-19/+27
Add quote.c to all the auxiliary Makefiles, and run "make alldeps".
2008-05-27make alldepsH. Peter Anvin4-4/+4
2008-05-20openwcom.mak: wmake uses & for continuation, not \ (sigh)H. Peter Anvin1-3/+3
wmake uses & for continuation, since \ is used for pathname separators.
2008-05-20netware.mak: correct dependenciesH. Peter Anvin1-26/+26
The Makefile uses VPATH and stripped directory names for files, so generate the dependencies accordingly.
2008-05-20Avoid #including .c files; instead compile as separate unitsH. Peter Anvin4-107/+93
Don't #include .c files, even if they are auto-generated; instead compile them as separate compilation units and let the linker do its job.
2008-05-13Make insnsb.c an actual compilation unitH. Peter Anvin4-25/+30
"make alldeps" doesn't really like it when included files end in *.c. Instead of renaming insnsb.c to insnsb.h, make it an actual compilation unit, since there really isn't any reason for it not to be.
2008-05-12Generate a byte array instead of using strings for the byte codesH. Peter Anvin4-22/+36
Generate a byte array instead of using C compiler strings for the byte codes. This has a few advantages: - No need to special-case zero due to broken C compilers. - Only insns.pl only ever reads the string, so we can invent our own syntax. - Compaction. - We can give it the proper, unsigned type.
2008-04-10Temporaries in macros need a unique prefix; WSAA*() macros to headerH. Peter Anvin4-8/+8
When using temporaries in macros, given them a unique prefix to avoid namespace collisions when using one macro inside another. Move the WSAA*() macros from outelf32/outelf64 to a separate header file.
2008-02-16OpenWatcom: optimize for 686H. Peter Anvin2-2/+2
Apparently -6 compiles are defined to run on anything 386 or newer, and just use different instruction timings.
2008-02-05Mkfiles/README: document the Netware Makefile.H. Peter Anvin1-0/+8
2008-02-05Add Makefile for NetwareH. Peter Anvin1-0/+213
Add Makefile for Netware, using the GNU toolchain.
2008-01-21OpenWatcom makefiles: add DEBUG optionH. Peter Anvin2-2/+4
Add a Makefile variable, DEBUG, which can be used to set debug options (-d2, -DLOGALLOC, etc.)