]> granicus.if.org Git - yasm/log
yasm
21 years agoFix header/type reference in comment.
Peter Johnson [Mon, 17 Mar 2003 00:42:20 +0000 (00:42 -0000)]
Fix header/type reference in comment.

svn path=/trunk/yasm/; revision=874

21 years agoEnable more warnings and perform code cleanups to avoid them.
Peter Johnson [Mon, 17 Mar 2003 00:03:02 +0000 (00:03 -0000)]
Enable more warnings and perform code cleanups to avoid them.
When -Werror is used, disable -Wconversion, because flex-generated code causes
warnings when calling fwrite() and fread().

svn path=/trunk/yasm/; revision=873

21 years agoyasm_vp_new() should take a char *, not a const char *.
Peter Johnson [Sun, 16 Mar 2003 23:53:31 +0000 (23:53 -0000)]
yasm_vp_new() should take a char *, not a const char *.

svn path=/trunk/yasm/; revision=872

21 years agoChange yasm__conv_unprint to take an int parameter instead of a char (safer).
Peter Johnson [Sun, 16 Mar 2003 23:52:54 +0000 (23:52 -0000)]
Change yasm__conv_unprint to take an int parameter instead of a char (safer).

svn path=/trunk/yasm/; revision=871

21 years agoMatch signedness of loop counters with loop bounds.
Peter Johnson [Sun, 16 Mar 2003 23:52:23 +0000 (23:52 -0000)]
Match signedness of loop counters with loop bounds.

svn path=/trunk/yasm/; revision=870

21 years agoAvoid warning by splitting LTDL_SET_PRELOADED_SYMBOLS() into its components.
Peter Johnson [Sun, 16 Mar 2003 23:50:59 +0000 (23:50 -0000)]
Avoid warning by splitting LTDL_SET_PRELOADED_SYMBOLS() into its components.

svn path=/trunk/yasm/; revision=869

21 years agoRemove unused yyaccept variables (eliminates warnings from generated code).
Peter Johnson [Sun, 16 Mar 2003 23:47:32 +0000 (23:47 -0000)]
Remove unused yyaccept variables (eliminates warnings from generated code).

svn path=/trunk/yasm/; revision=868

21 years agoInclude new Visual Studio build files in distribution.
Peter Johnson [Sun, 16 Mar 2003 01:04:43 +0000 (01:04 -0000)]
Include new Visual Studio build files in distribution.

svn path=/trunk/yasm/; revision=867

21 years agoRemove old Visual C++ makefile; new build structure is in vc subdirectory.
Peter Johnson [Sun, 16 Mar 2003 00:37:35 +0000 (00:37 -0000)]
Remove old Visual C++ makefile; new build structure is in vc subdirectory.

svn path=/trunk/yasm/; revision=866

21 years agoVisual Studio 6.0 build files (including generated .mak files) reflecting new
Peter Johnson [Sun, 16 Mar 2003 00:36:13 +0000 (00:36 -0000)]
Visual Studio 6.0 build files (including generated .mak files) reflecting new
source tree structure.

svn path=/trunk/yasm/; revision=865

21 years agoVisual Studio 6.0 build files (including generated .mak files) reflecting new
Peter Johnson [Sun, 16 Mar 2003 00:36:13 +0000 (00:36 -0000)]
Visual Studio 6.0 build files (including generated .mak files) reflecting new
source tree structure.

svn path=/trunk/yasm/; revision=864

21 years agoDon't try to use ltdl if compiling under Visual C++ (WIN32 defined).
Peter Johnson [Sun, 16 Mar 2003 00:19:19 +0000 (00:19 -0000)]
Don't try to use ltdl if compiling under Visual C++ (WIN32 defined).

svn path=/trunk/yasm/; revision=863

21 years agoDon't redefine NDEBUG if it's already defined.
Peter Johnson [Sun, 16 Mar 2003 00:17:08 +0000 (00:17 -0000)]
Don't redefine NDEBUG if it's already defined.

svn path=/trunk/yasm/; revision=862

21 years agoyasm_vp_new() should return its newly created structure!
Peter Johnson [Sun, 16 Mar 2003 00:02:15 +0000 (00:02 -0000)]
yasm_vp_new() should return its newly created structure!

svn path=/trunk/yasm/; revision=861

21 years agoUpdate to GNU Libtool 20030216 (from Cygwin) to get dynamic linking working
Peter Johnson [Sat, 15 Mar 2003 23:19:33 +0000 (23:19 -0000)]
Update to GNU Libtool 20030216 (from Cygwin) to get dynamic linking working
under Cygwin.

svn path=/trunk/yasm/; revision=860

21 years agoThis commit was generated by cvs2svn to compensate for changes in r857,
cvs2svn [Sat, 15 Mar 2003 23:08:41 +0000 (23:08 -0000)]
This commit was generated by cvs2svn to compensate for changes in r857,
which included commits to RCS files with non-trunk default branches.

svn path=/trunk/yasm/; revision=858

21 years agoInitial revision
Peter Johnson [Sat, 15 Mar 2003 22:04:29 +0000 (22:04 -0000)]
Initial revision

svn path=/trunk/yasm/; revision=853

21 years agoUse yasm__mergesort() in expr.c and use correct xmalloc/xfree in mergesort.c.
Peter Johnson [Sat, 15 Mar 2003 21:59:55 +0000 (21:59 -0000)]
Use yasm__mergesort() in expr.c and use correct xmalloc/xfree in mergesort.c.

svn path=/trunk/yasm/; revision=852

21 years agostamp-h.in is now in libyasm/.
Peter Johnson [Sat, 15 Mar 2003 07:17:42 +0000 (07:17 -0000)]
stamp-h.in is now in libyasm/.

svn path=/trunk/yasm/; revision=851

21 years agoSafe to use -no-undefined on all the modules.
Peter Johnson [Sat, 15 Mar 2003 07:15:05 +0000 (07:15 -0000)]
Safe to use -no-undefined on all the modules.

svn path=/trunk/yasm/; revision=850

21 years agoMake libyasm a "real" library, including installing header files.
Peter Johnson [Sat, 15 Mar 2003 05:07:49 +0000 (05:07 -0000)]
Make libyasm a "real" library, including installing header files.
Start separating modules and frontends from libyasm internals.

svn path=/trunk/yasm/; revision=849

21 years agoMinor cleanups (no functional changes) after src split.
Peter Johnson [Fri, 14 Mar 2003 04:40:04 +0000 (04:40 -0000)]
Minor cleanups (no functional changes) after src split.

svn path=/trunk/yasm/; revision=848

21 years agoSplit src into frontends, libyasm, and modules (forced commit after repo-copy).
Peter Johnson [Thu, 13 Mar 2003 06:55:46 +0000 (06:55 -0000)]
Split src into frontends, libyasm, and modules (forced commit after repo-copy).

svn path=/trunk/yasm/; revision=847

21 years agoReplace --enable-dev functionality with --enable-maintainer-mode usage, other
Peter Johnson [Thu, 13 Mar 2003 04:03:59 +0000 (04:03 -0000)]
Replace --enable-dev functionality with --enable-maintainer-mode usage, other
fixes and whitespace cleanup.  Renamed ANSI_CFLAGS to MORE_CFLAGS.  Enable
"morewarn" along with --enable-maintainer-mode if GCC is present by default.

svn path=/trunk/yasm/; revision=846

21 years agoUse AC_HELP_STRING() for custom argument help strings.
Peter Johnson [Thu, 13 Mar 2003 03:08:45 +0000 (03:08 -0000)]
Use AC_HELP_STRING() for custom argument help strings.

svn path=/trunk/yasm/; revision=845

21 years agoUse N_(), not _() for gettextized error messages.
Peter Johnson [Wed, 12 Mar 2003 07:21:08 +0000 (07:21 -0000)]
Use N_(), not _() for gettextized error messages.

svn path=/trunk/yasm/; revision=844

21 years agoThe Great Renaming (prefixing with yasm_), Part 2: allocation functions.
Peter Johnson [Wed, 12 Mar 2003 06:08:43 +0000 (06:08 -0000)]
The Great Renaming (prefixing with yasm_), Part 2: allocation functions.

svn path=/trunk/yasm/; revision=843

21 years agoUnmodularize errwarn, while making key errwarn functions replaceable.
Peter Johnson [Mon, 10 Mar 2003 08:55:41 +0000 (08:55 -0000)]
Unmodularize errwarn, while making key errwarn functions replaceable.
Also removes dependency of libyasm on libintl (gettext), so it can be linked
-no-undefined now!

svn path=/trunk/yasm/; revision=842

21 years agoThe Great Renaming, Part 2: prefix strcasecmp and strncasecmp with yasm__.
Peter Johnson [Sat, 8 Mar 2003 20:35:36 +0000 (20:35 -0000)]
The Great Renaming, Part 2: prefix strcasecmp and strncasecmp with yasm__.

svn path=/trunk/yasm/; revision=841

21 years agoMove yasm_std_errwarn and yasm_std_linemgr into libyasm.
Peter Johnson [Sat, 8 Mar 2003 19:55:56 +0000 (19:55 -0000)]
Move yasm_std_errwarn and yasm_std_linemgr into libyasm.

svn path=/trunk/yasm/; revision=840

21 years agoRefactor list_objfmts() and list_parsers() into module.c.
Peter Johnson [Sat, 8 Mar 2003 19:29:23 +0000 (19:29 -0000)]
Refactor list_objfmts() and list_parsers() into module.c.

svn path=/trunk/yasm/; revision=839

21 years agoThe Great Renaming (prefixing with yasm_), Part 1.
Peter Johnson [Sat, 8 Mar 2003 19:15:40 +0000 (19:15 -0000)]
The Great Renaming (prefixing with yasm_), Part 1.

svn path=/trunk/yasm/; revision=838

21 years agobc_new_objfmt_data() was creating a bytecode with the incorrect type.
Peter Johnson [Sat, 8 Mar 2003 07:33:06 +0000 (07:33 -0000)]
bc_new_objfmt_data() was creating a bytecode with the incorrect type.

svn path=/trunk/yasm/; revision=837

21 years agoFix file comment.
Peter Johnson [Sat, 22 Feb 2003 04:29:25 +0000 (04:29 -0000)]
Fix file comment.

svn path=/trunk/yasm/; revision=836

21 years agoRelicense under 2-clause BSD license.
Peter Johnson [Fri, 21 Feb 2003 03:50:29 +0000 (03:50 -0000)]
Relicense under 2-clause BSD license.

svn path=/trunk/yasm/; revision=835

21 years agoAllow both 'e' and 'E' for exponent designation in floating point values.
Peter Johnson [Thu, 13 Feb 2003 09:15:19 +0000 (09:15 -0000)]
Allow both 'e' and 'E' for exponent designation in floating point values.

svn path=/trunk/yasm/; revision=834

21 years agoAdd __int64 check.
Peter Johnson [Thu, 13 Feb 2003 07:11:56 +0000 (07:11 -0000)]
Add __int64 check.

svn path=/trunk/yasm/; revision=833

21 years agoAdd long long detection to unsigned long long detection.
Peter Johnson [Thu, 13 Feb 2003 06:56:34 +0000 (06:56 -0000)]
Add long long detection to unsigned long long detection.

svn path=/trunk/yasm/; revision=832

21 years agoClean up all but one -ansi -pedantic -Wall warning. Only affected one
Peter Johnson [Wed, 12 Feb 2003 07:42:48 +0000 (07:42 -0000)]
Clean up all but one -ansi -pedantic -Wall warning.  Only affected one
externally-visible function.

svn path=/trunk/yasm/; revision=831

21 years agoInitial revision
Peter Johnson [Sun, 9 Feb 2003 19:36:34 +0000 (19:36 -0000)]
Initial revision

svn path=/trunk/yasm/; revision=827

21 years agoInitial revision
Peter Johnson [Sun, 9 Feb 2003 19:29:23 +0000 (19:29 -0000)]
Initial revision

svn path=/trunk/yasm/; revision=823

22 years agoRe-license more files under the 3-clause BSD license (mostly header files).
Peter Johnson [Mon, 20 Jan 2003 08:51:23 +0000 (08:51 -0000)]
Re-license more files under the 3-clause BSD license (mostly header files).

svn path=/trunk/yasm/; revision=822

22 years agoAdd DO_FREE #defined constant to allow disabling of deallocation for speed.
Peter Johnson [Mon, 20 Jan 2003 03:52:14 +0000 (03:52 -0000)]
Add DO_FREE #defined constant to allow disabling of deallocation for speed.

svn path=/trunk/yasm/; revision=821

22 years agoAdd option for parser to associate input text (after preprocessing) with each
Peter Johnson [Mon, 20 Jan 2003 03:49:19 +0000 (03:49 -0000)]
Add option for parser to associate input text (after preprocessing) with each
line in the linemgr.

svn path=/trunk/yasm/; revision=820

22 years agoCheck count returned by nasm_parser_input() against 0 instead of just a short
Peter Johnson [Thu, 16 Jan 2003 08:51:11 +0000 (08:51 -0000)]
Check count returned by nasm_parser_input() against 0 instead of just a short
count to detect EOF.

svn path=/trunk/yasm/; revision=819

22 years agofix_directive_symrec() needs to return a value for all cases.
Peter Johnson [Mon, 9 Dec 2002 00:38:33 +0000 (00:38 -0000)]
fix_directive_symrec() needs to return a value for all cases.

svn path=/trunk/yasm/; revision=818

22 years agoFixup directive symrecs to point at global instead of local symbols if the
Peter Johnson [Sun, 24 Nov 2002 01:43:54 +0000 (01:43 -0000)]
Fixup directive symrecs to point at global instead of local symbols if the
direxpr is not just an ID.

svn path=/trunk/yasm/; revision=817

22 years agoUpdate addresses.
Peter Johnson [Thu, 21 Nov 2002 06:25:08 +0000 (06:25 -0000)]
Update addresses.

svn path=/trunk/yasm/; revision=816

22 years agoFix dbgfmt loading (should call load_dbgfmt not load_objfmt).
Peter Johnson [Thu, 21 Nov 2002 05:32:27 +0000 (05:32 -0000)]
Fix dbgfmt loading (should call load_dbgfmt not load_objfmt).

svn path=/trunk/yasm/; revision=815

22 years agoAllow "Athlon64" as an alias for Sledgehammer.
Peter Johnson [Thu, 21 Nov 2002 05:29:57 +0000 (05:29 -0000)]
Allow "Athlon64" as an alias for Sledgehammer.

svn path=/trunk/yasm/; revision=814

22 years agoAdd test for a large absolute section. By: H. Peter Anvin <hpa@zytor.com>.
Peter Johnson [Thu, 21 Nov 2002 05:28:06 +0000 (05:28 -0000)]
Add test for a large absolute section.  By: H. Peter Anvin <hpa@zytor.com>.

svn path=/trunk/yasm/; revision=813

22 years agoAdd x86-64 effective address support, as well as a couple of tests for it.
Peter Johnson [Tue, 19 Nov 2002 05:29:08 +0000 (05:29 -0000)]
Add x86-64 effective address support, as well as a couple of tests for it.

svn path=/trunk/yasm/; revision=812

22 years agoPut test suite file results into a separate "results" directory.
Peter Johnson [Sun, 17 Nov 2002 08:34:15 +0000 (08:34 -0000)]
Put test suite file results into a separate "results" directory.

svn path=/trunk/yasm/; revision=811

22 years agoTreat ',' as a directive valparam separator.
Peter Johnson [Sun, 17 Nov 2002 07:46:25 +0000 (07:46 -0000)]
Treat ',' as a directive valparam separator.

svn path=/trunk/yasm/; revision=810

22 years agoAdd basic x86-64 support (memory references are not properly handled yet).
Peter Johnson [Fri, 15 Nov 2002 08:04:41 +0000 (08:04 -0000)]
Add basic x86-64 support (memory references are not properly handled yet).
It's enabled via the [bits 64] directive.
Add some tests for x86-64 as well as 32/16 bit modes.
Enable some previously committed tests in Makefile.inc.

svn path=/trunk/yasm/; revision=809

22 years agoThe AMD Athlon is also known as the K7.
Peter Johnson [Sat, 9 Nov 2002 10:40:10 +0000 (10:40 -0000)]
The AMD Athlon is also known as the K7.

svn path=/trunk/yasm/; revision=808

22 years agoAdd official name for AMD's "sledgehammer" CPU: "Opteron".
Peter Johnson [Sat, 9 Nov 2002 10:38:56 +0000 (10:38 -0000)]
Add official name for AMD's "sledgehammer" CPU: "Opteron".

svn path=/trunk/yasm/; revision=807

22 years agoFix comments.
Peter Johnson [Fri, 8 Nov 2002 08:50:10 +0000 (08:50 -0000)]
Fix comments.

svn path=/trunk/yasm/; revision=806

22 years agoFix typo/bug in handling of OPA_AdSizeR (using wrong insn_info *).
Peter Johnson [Fri, 8 Nov 2002 08:48:30 +0000 (08:48 -0000)]
Fix typo/bug in handling of OPA_AdSizeR (using wrong insn_info *).

svn path=/trunk/yasm/; revision=805

22 years agoGo back to using a more-centralized function for front-end error reporting.
Peter Johnson [Thu, 7 Nov 2002 19:50:06 +0000 (19:50 -0000)]
Go back to using a more-centralized function for front-end error reporting.
Also fix a crash in one of the error conditions (inappropriate cleanup call).

svn path=/trunk/yasm/; revision=804

22 years agoDuplicate filename to ensure no double-frees occur.
Peter Johnson [Mon, 4 Nov 2002 09:10:57 +0000 (09:10 -0000)]
Duplicate filename to ensure no double-frees occur.

svn path=/trunk/yasm/; revision=803

22 years agoCheck for null pointers before freeing to avoid dmalloc errors.
Peter Johnson [Mon, 4 Nov 2002 09:10:04 +0000 (09:10 -0000)]
Check for null pointers before freeing to avoid dmalloc errors.

svn path=/trunk/yasm/; revision=802

22 years agoFix distcheck build issues.
Peter Johnson [Mon, 4 Nov 2002 08:47:57 +0000 (08:47 -0000)]
Fix distcheck build issues.

svn path=/trunk/yasm/; revision=801

22 years agoAdd the "real" NASM preprocessor, and default to it. As NASM is LGPL, no
Peter Johnson [Mon, 4 Nov 2002 08:35:35 +0000 (08:35 -0000)]
Add the "real" NASM preprocessor, and default to it.  As NASM is LGPL, no
licensing issues with this.  All the compiler warnings have been fixed, and
most namespace issues resolved.  However, the integration isn't perfect, and
there are probably memory leaks.  Note that right now the real NASM preproc
and "compatible" NASM parser share a module.  The parser should probably be
renamed to avoid extra loading and code source confusion.

svn path=/trunk/yasm/; revision=800

22 years agoMake sure we use the yapp preprocessor when running yapp tests.
Peter Johnson [Mon, 4 Nov 2002 08:32:33 +0000 (08:32 -0000)]
Make sure we use the yapp preprocessor when running yapp tests.

svn path=/trunk/yasm/; revision=799

22 years agoAdd va_list versions of error and warning errwarn functions.
Peter Johnson [Mon, 4 Nov 2002 08:17:44 +0000 (08:17 -0000)]
Add va_list versions of error and warning errwarn functions.
Required adding stdarg to util.h.

svn path=/trunk/yasm/; revision=798

22 years agoInitial revision
Peter Johnson [Mon, 4 Nov 2002 04:47:41 +0000 (04:47 -0000)]
Initial revision

svn path=/trunk/yasm/; revision=794

22 years agox86_bc_resolve_jmprel(): Plug memory leak.
Peter Johnson [Fri, 1 Nov 2002 20:39:03 +0000 (20:39 -0000)]
x86_bc_resolve_jmprel(): Plug memory leak.

svn path=/trunk/yasm/; revision=793

22 years agoModularize errwarn. gettext()-ize in errwarn, not in every module, eliminating
Peter Johnson [Fri, 1 Nov 2002 10:05:03 +0000 (10:05 -0000)]
Modularize errwarn.  gettext()-ize in errwarn, not in every module, eliminating
libintl dependency in modules.
Also standardize initialize() and cleanup() functions.
Move replace_extension() from file.c to main.c.
Clean up some extern variable declarations in various places (particularly
nasm-compatible parser).

svn path=/trunk/yasm/; revision=792

22 years agoAdd coff-objfmt.c.
Peter Johnson [Thu, 31 Oct 2002 20:28:21 +0000 (20:28 -0000)]
Add coff-objfmt.c.

svn path=/trunk/yasm/; revision=791

22 years agoinitialize() comment fix.
Peter Johnson [Tue, 29 Oct 2002 18:59:04 +0000 (18:59 -0000)]
initialize() comment fix.

svn path=/trunk/yasm/; revision=790

22 years agoParameters to input changed from unsigned long to linemgr *.
Peter Johnson [Tue, 29 Oct 2002 18:57:38 +0000 (18:57 -0000)]
Parameters to input changed from unsigned long to linemgr *.

svn path=/trunk/yasm/; revision=789

22 years agoAdd missing gettext call for one of the warning messages.
Peter Johnson [Mon, 28 Oct 2002 03:49:04 +0000 (03:49 -0000)]
Add missing gettext call for one of the warning messages.

svn path=/trunk/yasm/; revision=788

22 years agoDelete last of global variables by making a line manager and passing around
Peter Johnson [Sun, 27 Oct 2002 09:21:39 +0000 (09:21 -0000)]
Delete last of global variables by making a line manager and passing around
the line index.  Fixes some minor line number/error message nits due to
incorrect usage of line_index in old global variable method.

svn path=/trunk/yasm/; revision=787

22 years agoRemove indent_level global by passing it as a parameter.
Peter Johnson [Sat, 26 Oct 2002 19:50:08 +0000 (19:50 -0000)]
Remove indent_level global by passing it as a parameter.

svn path=/trunk/yasm/; revision=786

22 years agoActually load and check for debug format, instead of trying to load it as an
Peter Johnson [Sat, 26 Oct 2002 19:48:05 +0000 (19:48 -0000)]
Actually load and check for debug format, instead of trying to load it as an
object format (typos).

svn path=/trunk/yasm/; revision=785

22 years agoDynamically load all modules (preloading some of the default ones).
Peter Johnson [Sat, 26 Oct 2002 08:25:39 +0000 (08:25 -0000)]
Dynamically load all modules (preloading some of the default ones).
Start reducing global variables for cleaner module separation.
Add rudimentary debug format module interface and "null" debug format.

svn path=/trunk/yasm/; revision=784

22 years agoAllow single strings to be used as parameters for directives.
Peter Johnson [Wed, 23 Oct 2002 19:31:14 +0000 (19:31 -0000)]
Allow single strings to be used as parameters for directives.

svn path=/trunk/yasm/; revision=783

22 years agoDon't set yasm_DEPENDENCIES. It breaks automatic dependency tracking.
Peter Johnson [Wed, 23 Oct 2002 18:16:10 +0000 (18:16 -0000)]
Don't set yasm_DEPENDENCIES.  It breaks automatic dependency tracking.

svn path=/trunk/yasm/; revision=782

22 years agoRelicense under 3-clause BSD license.
Peter Johnson [Tue, 22 Oct 2002 19:46:27 +0000 (19:46 -0000)]
Relicense under 3-clause BSD license.

svn path=/trunk/yasm/; revision=781

22 years agoActually include new tests in distribution.
Peter Johnson [Tue, 22 Oct 2002 08:51:06 +0000 (08:51 -0000)]
Actually include new tests in distribution.

svn path=/trunk/yasm/; revision=780

22 years agoActually include new tests in the distribution.
Peter Johnson [Tue, 22 Oct 2002 08:48:29 +0000 (08:48 -0000)]
Actually include new tests in the distribution.

svn path=/trunk/yasm/; revision=779

22 years agoGet rid of expr_xform_neg_tree(), integrating its functionality into
Peter Johnson [Tue, 22 Oct 2002 08:42:16 +0000 (08:42 -0000)]
Get rid of expr_xform_neg_tree(), integrating its functionality into
expr_level_tree().  This fixes negative equ's and probably other issues.
This also makes expr_simplify() a macro pointing to expr_level_tree().

svn path=/trunk/yasm/; revision=778

22 years agoUse automake's standard macro for dmalloc instead of rolling our own.
Peter Johnson [Tue, 22 Oct 2002 07:45:45 +0000 (07:45 -0000)]
Use automake's standard macro for dmalloc instead of rolling our own.

svn path=/trunk/yasm/; revision=777

22 years agoAssume all sys/queue.h implementations are broken, and always use our local
Peter Johnson [Tue, 22 Oct 2002 06:38:44 +0000 (06:38 -0000)]
Assume all sys/queue.h implementations are broken, and always use our local
one (more implementations are broken than not broken).

svn path=/trunk/yasm/; revision=776

22 years agoFix COFF_SET_VMA output (needed to add section start address to addend).
Peter Johnson [Tue, 22 Oct 2002 06:37:24 +0000 (06:37 -0000)]
Fix COFF_SET_VMA output (needed to add section start address to addend).
To ensure all section start addresses are known, added a first pre-pass of
sections to calculate each one's address.

svn path=/trunk/yasm/; revision=775

22 years agoUse the current date as the version (for nightly builds). Releases will be
Peter Johnson [Mon, 21 Oct 2002 09:33:27 +0000 (09:33 -0000)]
Use the current date as the version (for nightly builds).  Releases will be
branched and the release version set here.

svn path=/trunk/yasm/; revision=774

22 years agoAdd COFF object format (for DJGPP). No debugging support yet (need to design
Peter Johnson [Mon, 21 Oct 2002 09:10:37 +0000 (09:10 -0000)]
Add COFF object format (for DJGPP).  No debugging support yet (need to design
dbgfmt interface).

svn path=/trunk/yasm/; revision=773

22 years agosymrec_data_print() doesn't need to handle a NULL data pointer.
Peter Johnson [Mon, 21 Oct 2002 08:56:44 +0000 (08:56 -0000)]
symrec_data_print() doesn't need to handle a NULL data pointer.

svn path=/trunk/yasm/; revision=772

22 years agoRun test input files through standard input instead of as input files to avoid
Peter Johnson [Mon, 21 Oct 2002 07:38:15 +0000 (07:38 -0000)]
Run test input files through standard input instead of as input files to avoid
pathname changing issues when builddir != srcdir (previous workaround worked
for text files, but for more complex objfmts such as coff that embed the source
filename in the binary output file, we need to find a different way).

svn path=/trunk/yasm/; revision=771

22 years agoDon't treat xfree as a real function (taking its address), as this doesn't work
Peter Johnson [Mon, 21 Oct 2002 05:01:30 +0000 (05:01 -0000)]
Don't treat xfree as a real function (taking its address), as this doesn't work
if dmalloc is enabled.

svn path=/trunk/yasm/; revision=770

22 years agoCheck for NULL pointer in LT_DLMEM_REASSIGN() before freeing it.
Peter Johnson [Mon, 21 Oct 2002 04:53:41 +0000 (04:53 -0000)]
Check for NULL pointer in LT_DLMEM_REASSIGN() before freeing it.

svn path=/trunk/yasm/; revision=769

22 years agoAdd expr_extract_symrec() to assist in performing relocation output.
Peter Johnson [Mon, 21 Oct 2002 04:14:01 +0000 (04:14 -0000)]
Add expr_extract_symrec() to assist in performing relocation output.

svn path=/trunk/yasm/; revision=768

22 years agoAdd offset parameter to output_expr functions (needed for relocation support).
Peter Johnson [Sun, 20 Oct 2002 20:39:29 +0000 (20:39 -0000)]
Add offset parameter to output_expr functions (needed for relocation support).

svn path=/trunk/yasm/; revision=767

22 years agoCombine global/common/extern handling into general of_data in symrec.
Peter Johnson [Sun, 20 Oct 2002 08:59:47 +0000 (08:59 -0000)]
Combine global/common/extern handling into general of_data in symrec.

svn path=/trunk/yasm/; revision=766

22 years agoCleanup objfmt before deleting sections and symrecs.
Peter Johnson [Fri, 18 Oct 2002 18:30:06 +0000 (18:30 -0000)]
Cleanup objfmt before deleting sections and symrecs.

svn path=/trunk/yasm/; revision=765

22 years agoChange how section of_data is allocated/destroyed, separating it from the
Peter Johnson [Thu, 17 Oct 2002 17:02:17 +0000 (17:02 -0000)]
Change how section of_data is allocated/destroyed, separating it from the
sections_switch_general() function.

svn path=/trunk/yasm/; revision=764

22 years agoAdd general objfmt-specific data to symrec.
Peter Johnson [Tue, 15 Oct 2002 06:45:45 +0000 (06:45 -0000)]
Add general objfmt-specific data to symrec.
Add delete function for symrec objfmt-specific data to objfmt interface.
Delete declare_data_copy function from objfmt interface (it wasn't being called
from anywhere).
Implement functions missing from dbg objfmt.

svn path=/trunk/yasm/; revision=763

22 years agoRemove obsolete references to HAVE_GNU_C_LIBRARY which were causing build
Peter Johnson [Sun, 13 Oct 2002 17:01:31 +0000 (17:01 -0000)]
Remove obsolete references to HAVE_GNU_C_LIBRARY which were causing build
breakage on some Linux platforms.

svn path=/trunk/yasm/; revision=762

22 years agoMake bytecode and effaddr "data" extensions more portable by including the
Peter Johnson [Sat, 12 Oct 2002 07:41:39 +0000 (07:41 -0000)]
Make bytecode and effaddr "data" extensions more portable by including the
base structure as the first element in each data structure.  Concept taken from
the JPEG library.

svn path=/trunk/yasm/; revision=761