Peter Johnson
dd915a3eef
Initial revision
...
svn path=/trunk/yasm/; revision=794
22 years ago
Peter Johnson
da2a49113a
x86_bc_resolve_jmprel(): Plug memory leak.
...
svn path=/trunk/yasm/; revision=793
22 years ago
Peter Johnson
9f6cb6783f
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 ago
Peter Johnson
6fd648a146
Add coff-objfmt.c.
...
svn path=/trunk/yasm/; revision=791
22 years ago
Peter Johnson
f729b9e5d5
initialize() comment fix.
...
svn path=/trunk/yasm/; revision=790
22 years ago
Peter Johnson
b891463826
Parameters to input changed from unsigned long to linemgr *.
...
svn path=/trunk/yasm/; revision=789
22 years ago
Peter Johnson
dd8fa20efa
Add missing gettext call for one of the warning messages.
...
svn path=/trunk/yasm/; revision=788
22 years ago
Peter Johnson
2f19ce4ecd
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 ago
Peter Johnson
caf89035f8
Remove indent_level global by passing it as a parameter.
...
svn path=/trunk/yasm/; revision=786
22 years ago
Peter Johnson
a3d4ccd55c
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 ago
Peter Johnson
d6f22c3fce
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 ago
Peter Johnson
e14601499b
Allow single strings to be used as parameters for directives.
...
svn path=/trunk/yasm/; revision=783
22 years ago
Peter Johnson
36d9736ddd
Don't set yasm_DEPENDENCIES. It breaks automatic dependency tracking.
...
svn path=/trunk/yasm/; revision=782
22 years ago
Peter Johnson
b59f5507da
Relicense under 3-clause BSD license.
...
svn path=/trunk/yasm/; revision=781
22 years ago
Peter Johnson
a8ac585112
Actually include new tests in distribution.
...
svn path=/trunk/yasm/; revision=780
22 years ago
Peter Johnson
7604d804d1
Actually include new tests in the distribution.
...
svn path=/trunk/yasm/; revision=779
22 years ago
Peter Johnson
4c3bb4a7cc
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 ago
Peter Johnson
e54446905d
Use automake's standard macro for dmalloc instead of rolling our own.
...
svn path=/trunk/yasm/; revision=777
22 years ago
Peter Johnson
326b77c80c
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 ago
Peter Johnson
50d92d758e
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 ago
Peter Johnson
aa495c33e8
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 ago
Peter Johnson
8f9c7383ea
Add COFF object format (for DJGPP). No debugging support yet (need to design
...
dbgfmt interface).
svn path=/trunk/yasm/; revision=773
22 years ago
Peter Johnson
2c94e53a91
symrec_data_print() doesn't need to handle a NULL data pointer.
...
svn path=/trunk/yasm/; revision=772
22 years ago
Peter Johnson
9b744cb938
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 ago
Peter Johnson
3adada2a00
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 ago
Peter Johnson
53f6123eaf
Check for NULL pointer in LT_DLMEM_REASSIGN() before freeing it.
...
svn path=/trunk/yasm/; revision=769
22 years ago
Peter Johnson
fab557b414
Add expr_extract_symrec() to assist in performing relocation output.
...
svn path=/trunk/yasm/; revision=768
22 years ago
Peter Johnson
9d9618eeba
Add offset parameter to output_expr functions (needed for relocation support).
...
svn path=/trunk/yasm/; revision=767
22 years ago
Peter Johnson
8ec46da76c
Combine global/common/extern handling into general of_data in symrec.
...
svn path=/trunk/yasm/; revision=766
22 years ago
Peter Johnson
8d851f2092
Cleanup objfmt before deleting sections and symrecs.
...
svn path=/trunk/yasm/; revision=765
22 years ago
Peter Johnson
3714208f36
Change how section of_data is allocated/destroyed, separating it from the
...
sections_switch_general() function.
svn path=/trunk/yasm/; revision=764
22 years ago
Peter Johnson
6707a585b9
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 ago
Peter Johnson
d0fa038137
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 ago
Peter Johnson
c5bfd97db6
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
22 years ago
Peter Johnson
9b6b24c054
Add a rex field in x86_insn (and some default initialization/output handling)
...
in preparation for x86-64 support.
svn path=/trunk/yasm/; revision=760
22 years ago
Peter Johnson
a49ffae2d7
Fix segreg mov instructions.
...
svn path=/trunk/yasm/; revision=759
22 years ago
Peter Johnson
6e3ed262f6
Add extended error/warning handling (just functionality, it's not actually
...
used yet).
svn path=/trunk/yasm/; revision=758
22 years ago
Peter Johnson
247701c0f4
Add test for just-committed changes to x86id.re (proper catchalls).
...
svn path=/trunk/yasm/; revision=757
22 years ago
Peter Johnson
c040fcfd6e
Comment out "marker"s, as in these cases re2c doesn't use them.
...
svn path=/trunk/yasm/; revision=756
22 years ago
Peter Johnson
88471b0611
bitvect_test doesn't need any sources besides itself and check.
...
svn path=/trunk/yasm/; revision=755
22 years ago
Peter Johnson
03705fd656
Fix catchalls so they really do catch everything else.
...
svn path=/trunk/yasm/; revision=754
22 years ago
Peter Johnson
d5600e7d20
Unbreak bin output (label resolution, Bug#6). Also fix alignment bug.
...
svn path=/trunk/yasm/; revision=753
22 years ago
Peter Johnson
4561686fda
Comment spacing fix.
...
svn path=/trunk/yasm/; revision=752
22 years ago
Peter Johnson
920f11a0e5
Add the ability to add an additional transformation function into the execution
...
flow of expr_level_tree(). Feature needed for objfmts/bin upcoming fixes.
svn path=/trunk/yasm/; revision=751
22 years ago
Peter Johnson
79cbfd8a17
Integrate BitVector version 6.3 changes.
...
svn path=/trunk/yasm/; revision=750
22 years ago
Peter Johnson
494ed1738d
Make output endian-tolerant by making intnum and floatnum output functions for
...
arch. This will also simplify other objfmt expr output functions. Change
file functions to use bits instead of byte/short/long, and create both little
and big endian versions. This name change caused changes in several other
files.
svn path=/trunk/yasm/; revision=747
22 years ago
Peter Johnson
d1f5de8d45
Run sed on the re2c output to update the newly added #line output.
...
svn path=/trunk/yasm/; revision=746
22 years ago
Peter Johnson
19d22bdbb3
Output something a little more unique than just - for the output file #line's.
...
svn path=/trunk/yasm/; revision=745
22 years ago
Peter Johnson
db4c347e32
Generate #line in the output in a useful way. Now it's much more usable for
...
debugging, code coverage, etc. (with a little post-processing sed help).
svn path=/trunk/yasm/; revision=744
22 years ago
Peter Johnson
9fc0fb05fc
Replace #line .. "lex.yy.c" with #line .. "output.c".
...
svn path=/trunk/yasm/; revision=743
22 years ago