Commit graph

1990 commits

Author SHA1 Message Date
Brian Gladman
af34e08058 svn path=/trunk/yasm/; revision=2331 2010-06-08 16:30:52 +00:00
Brian Gladman
c766e43831 Add an environment variable YASMPATH to override the default vsyasm directory
svn path=/trunk/yasm/; revision=2330
2010-05-27 13:26:23 +00:00
Brian Gladman
3a14d898b2 correct reported error in vsyasm.xml
svn path=/trunk/yasm/; revision=2329
2010-05-27 08:46:46 +00:00
Brian Gladman
e5b53cf7e6 change vsyasm property sheet to use an absolute path to vsyasm (as msbuild requires)
svn path=/trunk/yasm/; revision=2328
2010-05-24 08:37:45 +00:00
Peter Johnson
104dba1981 Fix #201: explicitly ignore [warning] directive and treat as warning.
svn path=/trunk/yasm/; revision=2323
2010-05-16 03:37:00 +00:00
Peter Johnson
6c7cc8ef76 Support all unary operators in directive expressions.
svn path=/trunk/yasm/; revision=2322
2010-05-16 03:14:09 +00:00
Peter Johnson
d5ae195703 Fix #202 (incorrect GOT offset generated in NASM mode).
Don't generate an additional offset for _GLOBAL_OFFSET_TABLE_ if a WRT was
specified (the NASM usage).  In GAS, _GLOBAL_OFFSET_TABLE_ doesn't have a WRT
but instead has special handling.

This isn't quite *exactly* the right fix; a better fix would be to recognize
the _GLOBAL_OFFSET_TABLE_ case in the GAS parser and adjust the value
appropriately there.  However, this fix seems to do the right thing in the
meantime for both GAS and NASM cases.

svn path=/trunk/yasm/; revision=2321
2010-05-15 07:45:48 +00:00
Peter Johnson
4003fa1bc0 Update frontend --version copyright dates.
svn path=/trunk/yasm/; revision=2317
2010-04-08 06:10:16 +00:00
Peter Johnson
34379be2ad COPYING: Update credits a bit.
svn path=/trunk/yasm/; revision=2314
2010-04-08 05:57:28 +00:00
Peter Johnson
e2e877c615 Update copyright dates.
svn path=/trunk/yasm/; revision=2313
2010-04-08 05:56:33 +00:00
Peter Johnson
bc3a8286ea NASM preproc: Add basic support for %{x:y} parameter list expansion.
Contributed by: Mathieu Monnier

nasm64developer has a more advanced 3-parameter version that will take
some time to integrate, so for now just provide the simpler version.

svn path=/trunk/yasm/; revision=2312
2010-04-08 03:46:43 +00:00
Peter Johnson
2de9ac8ede NASM preprocessor: Add %scope and %endscope.
Contributed by: Mathieu Monnier

svn path=/trunk/yasm/; revision=2311
2010-04-08 03:32:04 +00:00
Peter Johnson
323153d55a Instead of initializing unknown sections en-masse during objfmt_output(),
add new objfmt interface function init_new_section() to initialize as we
go.

This fixes several issues, primarily with debug formats that create sections.

Reported by: Brian Gladman

svn path=/trunk/yasm/; revision=2310
2010-03-28 19:28:54 +00:00
Peter Johnson
e56ece9a7d vsyasm: Allow override of object, list, and map file extensions.
svn path=/trunk/yasm/; revision=2309
2010-03-19 23:00:36 +00:00
Peter Johnson
e55891a302 vsyasm: Fix map extension.
svn path=/trunk/yasm/; revision=2308
2010-03-19 22:46:16 +00:00
Brian Gladman
293d7392b4 Improve VSYASM integration into Visual Studio 2010
svn path=/trunk/yasm/; revision=2307
2010-03-10 11:33:55 +00:00
Peter Johnson
d7c5571bcb vsyasm: if -E is used, print command line as first line in error file.
Requested by: Brian Gladman

svn path=/trunk/yasm/; revision=2300
2010-03-04 05:13:48 +00:00
Peter Johnson
47b7b364c7 Makefile.am: Update for [2297] changes.
svn path=/trunk/yasm/; revision=2299
2010-03-04 05:08:00 +00:00
Brian Gladman
7b10030105 Adjust YASM integration into Visual Studio 2010 slightly
svn path=/trunk/yasm/; revision=2298
2010-03-03 10:31:37 +00:00
Brian Gladman
d7ca41bfa8 Add VSYASM integration files for Visual Studio 2010 (and remove incorrect YASM ones)
svn path=/trunk/yasm/; revision=2297
2010-03-03 09:41:12 +00:00
Brian Gladman
ed58136605 Correction to Python detection on Windows
svn path=/trunk/yasm/; revision=2296
2010-02-25 11:47:02 +00:00
Brian Gladman
e062b3c456 Yet one more attempt to find Python in Windows
svn path=/trunk/yasm/; revision=2295
2010-02-25 10:57:07 +00:00
Brian Gladman
40ab77b4d0 Make a further attempt to use the Windows registry to find Python
svn path=/trunk/yasm/; revision=2294
2010-02-24 11:26:40 +00:00
Brian Gladman
e6fd6d7af1 correct error in python detection batch file
svn path=/trunk/yasm/; revision=2293
2010-02-23 08:56:20 +00:00
Brian Gladman
c85781d095 Hopefully remove python discovery issue in Windows build
svn path=/trunk/yasm/; revision=2292
2010-02-23 08:15:43 +00:00
Peter Johnson
d28f2a03a7 vsyasm: More gracefully handle single input file by using output name as-is.
Patch by: Brian Gladman

svn path=/trunk/yasm/; revision=2291
2010-02-19 07:07:51 +00:00
Peter Johnson
03de198f09 Add vc10 and vsyasm build files to EXTRA_DIST.
svn path=/trunk/yasm/; revision=2290
2010-02-17 06:33:26 +00:00
Brian Gladman
b2d1f3fe4b Update Visual Studio 2010 build files
svn path=/trunk/yasm/; revision=2289
2010-02-15 10:45:22 +00:00
Brian Gladman
03a71a10e4 1. Add vsyasm build to VC9 and vc10 builds
2. Improve search for Python interpreter

svn path=/trunk/yasm/; revision=2288
2010-02-13 19:26:44 +00:00
Peter Johnson
c699637602 vsyasm: create intermediate output directories if necessary.
This feature is apparently assumed by MSBUILD.

Contributed (with minor modifications) by: Brian Gladman

svn path=/trunk/yasm/; revision=2287
2010-02-13 08:42:27 +00:00
Peter Johnson
11a71a15f9 Update yasm_parsers(7) now that GAS preprocessor support is fairly mature.
svn path=/trunk/yasm/; revision=2286
2010-02-13 07:25:23 +00:00
Peter Johnson
74e776b0f6 Add support for gas preprocessor macro directives.
It doesn't yet support the full set of macro types gas supports, but
can handle a lot of common cases.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2285
2010-02-13 07:22:23 +00:00
Peter Johnson
463f4d7963 Add "vsyasm", a batch version of yasm primarily useful for VS2010.
Basically the objfile, listfile, and mapfile options specify output
directories instead of files.  Multiple files are accepted and each one
is independently assembled in command line order.  All options (such
as include directories and predefined macros) apply to all input files.
Any error terminates the process early.

Suggested by: Brian Gladman

svn path=/trunk/yasm/; revision=2284
2010-02-06 09:27:32 +00:00
Peter Johnson
419e16fc71 nasm_pp_cleanup(): Do a better job of cleaning up.
svn path=/trunk/yasm/; revision=2283
2010-02-06 09:13:56 +00:00
Peter Johnson
702da8cc55 Update flat and DJGPP Makefiles for GAS preproc and parser changes.
svn path=/trunk/yasm/; revision=2282
2010-01-20 03:58:15 +00:00
Brian Gladman
d9bfa3d26f Update VC++ v10 build
svn path=/trunk/yasm/; revision=2281
2010-01-19 11:11:35 +00:00
Brian Gladman
3097cd1ad0 Update VC++ v9 build
svn path=/trunk/yasm/; revision=2280
2010-01-19 11:09:21 +00:00
Peter Johnson
cb7f1a254c Add .intel_syntax and .gas_syntax support to GAS parser.
Uses the NASM parser for the .intel_syntax parsing heavy lifting.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2279
2010-01-19 07:57:43 +00:00
Peter Johnson
14888572a6 Add nasm-parser-struct.h to SOURCES.
svn path=/trunk/yasm/; revision=2278
2010-01-19 07:28:08 +00:00
Peter Johnson
7d6b1a0ae4 Nasm parser: Add some very basic MASM-ish syntax handling, along the lines
of the TASM "mode".

These code paths aren't used yet; they will be used for GAS .intel_syntax
handling.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2277
2010-01-19 07:03:15 +00:00
Peter Johnson
d965ef7d7a Split yasm_parser_nasm structure out to separate header.
This is needed so that other parsers can get access to this structure without
naming conflicts.

Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2276
2010-01-19 06:56:08 +00:00
Peter Johnson
d61b43941d Allow gas flags input to bin objfmt (ignored and not used).
Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2275
2010-01-14 08:24:13 +00:00
Peter Johnson
26c7e74729 substitute_values(): Allocate sufficient space for null terminator.
Noticed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2274
2010-01-14 08:10:35 +00:00
Peter Johnson
e7185d2e24 gas-preproc.c: Use sprintf instead of snprintf.
It's impossible for a decimal long string to be longer than 64 chars.

Also remove workaround for MSVC added in r2267.

svn path=/trunk/yasm/; revision=2273
2010-01-13 04:44:28 +00:00
Peter Johnson
cc6301d9ce Allow older automake version (1.9.6).
svn path=/trunk/yasm/; revision=2272
2010-01-12 05:59:37 +00:00
Brian Gladman
12d3a8f642 Fix #200 - yasm.rules double quote issue
svn path=/trunk/yasm/; revision=2271
2010-01-08 09:50:52 +00:00
Brian Gladman
9dbb4aa480 "Fix #200" - yasm.rules double quote issue
svn path=/trunk/yasm/; revision=2270
2010-01-08 09:47:46 +00:00
Peter Johnson
c30e4abfd3 Update autoconf/automake scripts.
Also remove ltmain.sh as we no longer use libtool.

Patch submitted by: Roumen Petrov <bugtrack@roumenpetrov.info>

svn path=/trunk/yasm/; revision=2269
2010-01-07 07:00:05 +00:00
Peter Johnson
553e615b56 Unbreak make distcheck.
svn path=/trunk/yasm/; revision=2268
2010-01-07 06:55:03 +00:00
Brian Gladman
ed1ff0ef26 1. Add gas preprocessor build on Windows
2. Add snprintf -> _snprintf define for VC++ build

svn path=/trunk/yasm/; revision=2267
2010-01-05 16:01:53 +00:00