]> granicus.if.org Git - yasm/log
yasm
7 years agoallow movbe to be suffixed with wlq in gas syntax.
Matt Oliver [Mon, 3 Apr 2017 17:58:31 +0000 (03:58 +1000)]
allow movbe to be suffixed with wlq in gas syntax.

7 years agofix memory errors when using gas processor with coff object output.
Matt Oliver [Mon, 3 Apr 2017 14:34:47 +0000 (00:34 +1000)]
fix memory errors when using gas processor with coff object output.

7 years agoOnly print 'warnings treated as errors' if there were warnings (#75)
Simon Brenner [Sat, 23 Sep 2017 22:09:47 +0000 (00:09 +0200)]
Only print 'warnings treated as errors' if there were warnings (#75)

This prints it as an additional error for the line that generated the
first warning.

7 years agoLeak fixes (#79)
bird2tori [Sat, 23 Sep 2017 22:08:58 +0000 (00:08 +0200)]
Leak fixes (#79)

* preproc/nasm: Close the input file; addressed a few memory leaks.

* yasm.c: delete include paths before we exit

* cv-dbgfmt.c: Free cv_filename::filename too.

7 years agoNew AMD Excavator MONITORX, MWAITX instruction support (for 32bit/64bit) (#78)
Paul Blinzer [Sat, 23 Sep 2017 22:08:03 +0000 (15:08 -0700)]
New AMD Excavator MONITORX, MWAITX instruction support (for 32bit/64bit) (#78)

MONITORX has opcode "0F 01 FA".
rAX contains address to be monitored
ECX specifies optional extensions
EDX specifies optional hints

MWAITX has opcode "0F 01 FA".
EAX specifies optional hints
ECX specifies optional extensions

Public documentation: http://support.amd.com/TechDocs/24594.pdf

New CLZERO instruction support (for 32bit/64bit)
* clzero has opcode "0F 01 FC".
* clzero gets enabled with CPUID, 8000_0008, EBX[0] =1.
* clzero instruction zero's out the 64 byte cache line specified in rAX. Bits 5:0 of rAX are ignored

Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
Redistributed under simplified 2-clause BSD licence

7 years agoadd Visual Studio 2017 build files
Brian Gladman [Tue, 7 Mar 2017 20:38:37 +0000 (20:38 +0000)]
add Visual Studio 2017 build files

7 years agoadd missing VC++ header
Brian Gladman [Tue, 7 Mar 2017 20:31:18 +0000 (20:31 +0000)]
add missing VC++ header

9 years agoAdded -Wno-segreg-in-64bit.
Peter Johnson [Sat, 7 Nov 2015 04:15:04 +0000 (20:15 -0800)]
Added -Wno-segreg-in-64bit.

This allows suppressing the annoying 'segment register ignored in 64-bit mode'
warning.

9 years agoMerge branch 'master' of github.com:yasm/yasm
Brian Gladman [Fri, 6 Nov 2015 11:33:59 +0000 (11:33 +0000)]
Merge branch 'master' of github.com:yasm/yasm

9 years agoupdate MSVC14 build
Brian Gladman [Fri, 6 Nov 2015 11:33:14 +0000 (11:33 +0000)]
update MSVC14 build

9 years agoMerge pull request #74 from darealshinji/patch-1
Peter Johnson [Fri, 6 Nov 2015 10:43:29 +0000 (02:43 -0800)]
Merge pull request #74 from darealshinji/patch-1

fixing an argument parsing bug in ytasm

9 years agoMerge pull request #70 from sgraham/shadowing-warning-vs2015
Peter Johnson [Fri, 6 Nov 2015 10:38:39 +0000 (02:38 -0800)]
Merge pull request #70 from sgraham/shadowing-warning-vs2015

Avoid shadowing warning when building with VS2015

9 years agoMerge pull request #72 from Gramner/master
Peter Johnson [Fri, 6 Nov 2015 10:36:56 +0000 (02:36 -0800)]
Merge pull request #72 from Gramner/master

Support numbers prefixed with + or - in %ifnum

9 years agofixing an argument parsing bug in ytasm 74/head
darealshinji [Thu, 5 Nov 2015 17:57:21 +0000 (18:57 +0100)]
fixing an argument parsing bug in ytasm

Taken from a Debian patch.
More information can be found at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716639
http://anonscm.debian.org/viewvc/sam-hocevar/pkg-misc/unstable/yasm/debian/patches/100_ytasm_parsing_error.diff?view=log

9 years agoSupport numbers prefixed with + or - in %ifnum 72/head
Henrik Gramner [Sat, 17 Oct 2015 19:32:34 +0000 (21:32 +0200)]
Support numbers prefixed with + or - in %ifnum

9 years agoadd Visual Studio build files missed in thye initial commit
Brian Gladman [Mon, 27 Jul 2015 19:48:42 +0000 (20:48 +0100)]
add Visual Studio build files missed in thye initial commit

9 years agoAdd build files for Visual Studio 2015
Brian Gladman [Sat, 16 May 2015 14:17:55 +0000 (15:17 +0100)]
Add build files for Visual Studio 2015

9 years agoAvoid shadowing warning when building with VS2015 70/head
Scott Graham [Fri, 20 Feb 2015 01:05:38 +0000 (17:05 -0800)]
Avoid shadowing warning when building with VS2015

9 years agoMerge pull request #68 from jix/master
Peter Johnson [Fri, 2 Jan 2015 05:51:00 +0000 (21:51 -0800)]
Merge pull request #68 from jix/master

Optimization and improved @jix

9 years agoMerge pull request #69 from denji/gas-segfault
Peter Johnson [Fri, 2 Jan 2015 05:49:16 +0000 (21:49 -0800)]
Merge pull request #69 from denji/gas-segfault

Fix segfaults GNU assembler files on OS X

10 years agoFix yasm segfaults GNU assembler files on OS X 69/head
Denis Denisov [Sat, 15 Nov 2014 21:37:54 +0000 (23:37 +0200)]
Fix yasm segfaults GNU assembler files on OS X

Bug: http://tortall.lighthouseapp.com/projects/78676/tickets/269

10 years agoAllow -longopt as well as --longopt.
Peter Johnson [Sun, 5 Oct 2014 17:31:26 +0000 (10:31 -0700)]
Allow -longopt as well as --longopt.

This is more consistent with other tools.

10 years agoRename -E option to -Z.
Peter Johnson [Sun, 5 Oct 2014 17:10:08 +0000 (10:10 -0700)]
Rename -E option to -Z.

"-E" is too easily typoed for "-e", and is dangerous because it overwrites
the following filename.  "-E" is retained as a synonym for "-e".

This change also makes yasm command-line consistent with NASM.

10 years agoFix a few more cases of case sensitivity in module handling.
Peter Johnson [Sun, 5 Oct 2014 16:50:33 +0000 (09:50 -0700)]
Fix a few more cases of case sensitivity in module handling.

10 years agoMake cmake module search case-insensitive.
Peter Johnson [Sun, 5 Oct 2014 16:48:51 +0000 (09:48 -0700)]
Make cmake module search case-insensitive.

This is needed to make things like "-f Win32" work, and matches the non-cmake
behavior.

[#276 state:resolved]

10 years agoCOFF/PE: Always set paddr and vaddr to 0.
Peter Johnson [Sat, 27 Sep 2014 04:12:42 +0000 (21:12 -0700)]
COFF/PE: Always set paddr and vaddr to 0.

It appears that GNU binutils always interpret PE/COFF object files as if
they were executable files, namely that the paddr field is a rounded-up
section size (aka virtual size).  Yasm previously followed the Microsoft
specification which stated that for object files this field should be set
to the "physical address" of the section (e.g. the sum of all previous
section sizes).  However, several other sources state this field should be
set to 0 in object files, and it appears that Microsoft tools accept this.

For compatibility with the GNU tools, this commit makes Yasm always set the
paddr/vsize field to 0.

This commit also eliminates the COFF_SET_VMA customization for COFF
files.  Previously this was used to set LMA=VMA in COFF, but LMA=0 in PE.
Now that VMA is always 0, this is no longer required (LMA=VMA=0 in both
PE and COFF).

10 years agoAdd missing objfmt_x64 to CMakeLists.txt.
Peter Johnson [Fri, 19 Sep 2014 07:44:49 +0000 (00:44 -0700)]
Add missing objfmt_x64 to CMakeLists.txt.

This caused cmake builds to not recognize "x64" as an object format.

Reported by: Brian Gladman

10 years agoBump DEF_VER to 1.3.0 for release. v1.3.0
Peter Johnson [Sun, 10 Aug 2014 07:48:20 +0000 (00:48 -0700)]
Bump DEF_VER to 1.3.0 for release.

10 years agoAllow building of static executables with cmake.
Peter Johnson [Mon, 11 Aug 2014 04:38:48 +0000 (21:38 -0700)]
Allow building of static executables with cmake.

10 years agoAdd missing YASM_LIB_DECL declarations.
Peter Johnson [Sun, 10 Aug 2014 19:33:12 +0000 (12:33 -0700)]
Add missing YASM_LIB_DECL declarations.

10 years agogenstring.py: Make Python3-compatible.
Peter Johnson [Sun, 10 Aug 2014 19:32:50 +0000 (12:32 -0700)]
genstring.py: Make Python3-compatible.

10 years agoWarnings cleanup.
Peter Johnson [Sun, 10 Aug 2014 17:58:33 +0000 (10:58 -0700)]
Warnings cleanup.

10 years agoAdd vsyasm to cmake build.
Peter Johnson [Sun, 10 Aug 2014 17:41:51 +0000 (10:41 -0700)]
Add vsyasm to cmake build.

10 years agoVersionGen.cmake: Fix endif.
Peter Johnson [Sun, 10 Aug 2014 17:40:01 +0000 (10:40 -0700)]
VersionGen.cmake: Fix endif.

10 years agoUpdate .gitignore for automake changes.
Peter Johnson [Sun, 10 Aug 2014 17:28:25 +0000 (10:28 -0700)]
Update .gitignore for automake changes.

10 years agoTurn on subdir-objects automake option.
Peter Johnson [Sun, 10 Aug 2014 17:26:16 +0000 (10:26 -0700)]
Turn on subdir-objects automake option.

10 years agoUpdate gettext.
Peter Johnson [Sun, 10 Aug 2014 17:23:36 +0000 (10:23 -0700)]
Update gettext.

10 years agoAdd cmake files to distribution.
Peter Johnson [Sun, 10 Aug 2014 17:18:30 +0000 (10:18 -0700)]
Add cmake files to distribution.

10 years agoBump copyright dates for 2014.
Peter Johnson [Sun, 10 Aug 2014 07:51:51 +0000 (00:51 -0700)]
Bump copyright dates for 2014.

10 years agoAdd vc12 files to distribution.
Peter Johnson [Sun, 10 Aug 2014 07:46:58 +0000 (00:46 -0700)]
Add vc12 files to distribution.

10 years agodist-hook: Copy YASM-VERSION.h to Mkfiles/vc12.
Peter Johnson [Sun, 10 Aug 2014 07:43:17 +0000 (00:43 -0700)]
dist-hook: Copy YASM-VERSION.h to Mkfiles/vc12.

10 years agocoff-objfmt.c: Add missing break.
Peter Johnson [Mon, 14 Apr 2014 05:55:47 +0000 (22:55 -0700)]
coff-objfmt.c: Add missing break.

[#268 state:resolved]

10 years agoMerge pull request #67 from maksqwe/initalen_fix
Peter Johnson [Mon, 14 Apr 2014 05:59:30 +0000 (22:59 -0700)]
Merge pull request #67 from maksqwe/initalen_fix

missing 'break' in initalen()

10 years agomissing 'break' in initalen() 67/head
Maks Naumov [Fri, 11 Apr 2014 18:05:55 +0000 (21:05 +0300)]
missing 'break' in initalen()

10 years agoRename a Visual Studio 2013 build file
Brian Gladman [Sun, 6 Apr 2014 07:40:31 +0000 (08:40 +0100)]
Rename a Visual Studio 2013 build file

10 years agoAdd Visual Studio 2013 build files
Brian Gladman [Sun, 6 Apr 2014 07:35:10 +0000 (08:35 +0100)]
Add Visual Studio 2013 build files

10 years agoAdd cpu ivybridge, haswell, broadwell, skylake.
Peter Johnson [Sun, 6 Apr 2014 06:34:27 +0000 (23:34 -0700)]
Add cpu ivybridge, haswell, broadwell, skylake.

10 years agoAdd Intel ADX, RDSEED, and SMAP instructions.
Peter Johnson [Sat, 5 Apr 2014 07:17:13 +0000 (00:17 -0700)]
Add Intel ADX, RDSEED, and SMAP instructions.

10 years agoAdd Intel SHA instructions.
Peter Johnson [Fri, 14 Feb 2014 20:01:43 +0000 (12:01 -0800)]
Add Intel SHA instructions.

Contributed by: Mark Charney @ Intel

10 years agoMerge pull request #66 from Gramner/master
Peter Johnson [Fri, 14 Feb 2014 19:33:25 +0000 (11:33 -0800)]
Merge pull request #66 from Gramner/master

Use a larger hash table size

10 years agoUse a larger hash table size 66/head
Henrik Gramner [Thu, 16 Jan 2014 22:37:11 +0000 (23:37 +0100)]
Use a larger hash table size

Increases compilation speed of files with a large number of macros by
around 20x.

11 years agotest commit
Brian Gladman [Wed, 13 Nov 2013 13:15:26 +0000 (13:15 +0000)]
test commit

11 years agoMinor change to Python detection in the Visual Studio build to avoid spurious error...
briangladman [Wed, 13 Nov 2013 12:24:21 +0000 (12:24 +0000)]
Minor change to Python detection in the Visual Studio build to avoid spurious error message

11 years agoOptimize matching loops.
Peter Johnson [Thu, 8 Aug 2013 05:11:39 +0000 (22:11 -0700)]
Optimize matching loops.

Reported by: Po-Chun Chang

[#264 state:resolved]
[#265 state:resolved]
[#266 state:resolved]

11 years agoUpdate config.guess and config.sub.
Peter Johnson [Wed, 3 Jul 2013 18:25:50 +0000 (11:25 -0700)]
Update config.guess and config.sub.

[#255 state:resolved]

11 years agocv8: Fix line number issues with multiple files.
Peter Johnson [Wed, 3 Jul 2013 18:06:56 +0000 (11:06 -0700)]
cv8: Fix line number issues with multiple files.

Patch by: Knut St. Osmundsen

[#263 state:resolved]

11 years agoUnbreak distcheck.
Peter Johnson [Fri, 21 Jun 2013 17:02:32 +0000 (10:02 -0700)]
Unbreak distcheck.

11 years agoFix vpbroadcastq.
Peter Johnson [Sat, 1 Jun 2013 16:40:34 +0000 (09:40 -0700)]
Fix vpbroadcastq.

Patch by: Jason Garrett-Glaser <jason@x264.com>

12 years agoMake the detection of Python in the Visual Studio 2010 build more robust
BrianGladman [Tue, 6 Nov 2012 09:16:28 +0000 (09:16 +0000)]
Make the detection of Python in the Visual Studio 2010 build more robust

12 years agoAdd support for "function" decorator in win32/win64.
Peter Johnson [Sat, 20 Oct 2012 00:23:26 +0000 (17:23 -0700)]
Add support for "function" decorator in win32/win64.

This can be used on global directives (e.g. global _foo:function) to
indicate the global is a function.  This is useful for incremental
linking in MSVC.

12 years agoadd new elf file to visual studio 2010 build
BrianGladman [Tue, 11 Sep 2012 18:57:20 +0000 (19:57 +0100)]
add new elf file to visual studio 2010 build

12 years agogas-parse.c: Eliminate warning.
Peter Johnson [Fri, 31 Aug 2012 06:53:41 +0000 (23:53 -0700)]
gas-parse.c: Eliminate warning.

12 years agoRegen yasm_arch.7 and yasm_objfmts.7.
Peter Johnson [Fri, 31 Aug 2012 06:53:29 +0000 (23:53 -0700)]
Regen yasm_arch.7 and yasm_objfmts.7.

12 years agoAdd support for x32
H.J. Lu [Tue, 26 Jun 2012 18:34:50 +0000 (11:34 -0700)]
Add support for x32

X32 is a 32-bit psABI for x86-64 with 32-bit pointer size.  More info
can be found at:

https://sites.google.com/site/x32abi/

12 years agoMerge pull request #64 from sgraham/fix-win32-warnings
Peter Johnson [Fri, 31 Aug 2012 06:40:42 +0000 (23:40 -0700)]
Merge pull request #64 from sgraham/fix-win32-warnings

Fix a couple warnings when building on win32

12 years agoImprove check for Cython version.
Peter Johnson [Fri, 31 Aug 2012 06:34:49 +0000 (23:34 -0700)]
Improve check for Cython version.

[#249 state:resolved]

12 years agoFix vphaddudq opcode; should be DB rather than D8.
Peter Johnson [Sat, 18 Aug 2012 20:55:10 +0000 (13:55 -0700)]
Fix vphaddudq opcode; should be DB rather than D8.

12 years agoBetter optimization of expr with segoffs 68/head
Jannis Harder [Fri, 3 Aug 2012 15:30:15 +0000 (17:30 +0200)]
Better optimization of expr with segoffs

Lift all segoffs to the root of the tree. Combine identical segment
values while doing this.

12 years agoInterpret vstart as linear address
Jannis Harder [Sun, 29 Jul 2012 15:19:46 +0000 (17:19 +0200)]
Interpret vstart as linear address

Changed segment:offset calculations so that vstart = 16*segment +
offset and vseg = segment instead of vstart = offset. Without this the
existing code to infer vstart addresses is not useful.

12 years agoGenerate segmented addresses for labels
Jannis Harder [Sun, 29 Jul 2012 12:31:37 +0000 (14:31 +0200)]
Generate segmented addresses for labels

- Labels defined inside sections with vseg have segment:offset
  addresses
- The section.<section name>.vstart label has a segment:offset
  address

12 years agoAdd segments to label addresses
Jannis Harder [Fri, 27 Jul 2012 21:19:53 +0000 (23:19 +0200)]
Add segments to label addresses

Generate addresses with a segment part for labels inside a section
with a defined vseg

12 years agosquashme
Jannis Harder [Wed, 1 Aug 2012 13:30:50 +0000 (15:30 +0200)]
squashme

12 years agoOverrides and dummy value finalization for bin
Jannis Harder [Fri, 27 Jul 2012 15:57:23 +0000 (17:57 +0200)]
Overrides and dummy value finalization for bin

- Added support for overriding certain functions
- Override value_finalize with dummy function for the bin objfmt

12 years agoNew wrt optimization and improved seg optimization
Jannis Harder [Fri, 27 Jul 2012 01:18:21 +0000 (03:18 +0200)]
New wrt optimization and improved seg optimization

- Improve seg optimization to handle deep segoffs
- Add wrt optimization that handles deep segoffs

12 years agoAdd vseg section option
Jannis Harder [Thu, 26 Jul 2012 21:43:37 +0000 (23:43 +0200)]
Add vseg section option

- Added vseg and ivseg to bin_section_data
- Parsing of vseg option as expression
- Conversion to integer ivsg
- Output of vseg in mapfiles

12 years agoMerge pull request #65 from vmt/master
Peter Johnson [Fri, 1 Jun 2012 04:43:51 +0000 (21:43 -0700)]
Merge pull request #65 from vmt/master

Fix definition of pmulhrw

12 years agoFix minor typo in the definition of pmulhrw 65/head
Vivek Thampi [Tue, 29 May 2012 06:59:55 +0000 (23:59 -0700)]
Fix minor typo in the definition of pmulhrw

This change fixes the definition of "pmulhrw" where it is defined
as having the mnemonic "pmulhrwa".

12 years agofix a couple warnings when building on win32 64/head
Scott Graham [Thu, 10 May 2012 03:48:16 +0000 (20:48 -0700)]
fix a couple warnings when building on win32

12 years agoMerge pull request #63 from nico/blah
Peter Johnson [Tue, 13 Mar 2012 06:58:35 +0000 (23:58 -0700)]
Merge pull request #63 from nico/blah

Don't use a C++ comment in a C source file.

12 years agoDon't use a C++ comment in a C source file. 63/head
Nico Weber [Sun, 11 Mar 2012 06:52:34 +0000 (22:52 -0800)]
Don't use a C++ comment in a C source file.

12 years agoMerge pull request #62 from nico/ticket246
Peter Johnson [Sat, 10 Mar 2012 05:41:18 +0000 (21:41 -0800)]
Merge pull request #62 from nico/ticket246

In the Mach-O writer, only warn on ignored flags if the new flags are different from the old flags.

[#246 state:resolved]

12 years agoIn the Mach-O writer, only warn on ignored flags if the new flags 62/head
Nico Weber [Wed, 7 Mar 2012 01:40:41 +0000 (17:40 -0800)]
In the Mach-O writer, only warn on ignored flags if the new flags
are different from the old flags.

Fixes http://tortall.lighthouseapp.com/projects/78676-yasm/tickets/246

12 years agoMerge pull request #61 from fischman/master
Peter Johnson [Fri, 2 Mar 2012 22:38:30 +0000 (14:38 -0800)]
Merge pull request #61 from fischman/master

Silence is golden: genperf emits too much stdout in success path

12 years agoAdded support for HSW TSX instructions:
sergey semenko [Mon, 27 Feb 2012 10:07:03 +0000 (12:07 +0200)]
Added support for HSW TSX instructions:

XAXQUIRE
XRELEASE
XABORT
XBEGIN
XEND
XTEST

Also fixed a bug for CALL instruction (opcode 0xE8) - it allowed 16 bit operand with 0x66 prefix in 64 bit mode,
while 16 bit operand is not allowed at all in 64 bit mode.

Added X86_ACQREL prefix group for XACQUIRE/XRELEASE prefixes, since they need to be orthogonal to LOCKREP
prefixes, because TSX prefixes must come together with F0 (LOCK) prefix.

However this commit does not enforce using TSX hints only with instructions they are allowed to be used.
The reason for this is that lock prefix F0 itself is not enforced to be used only with lockable instructions, this seems to be a decision made by
Yasm developers, that user himself must take care of these situations.

Right now TSX hints can come with F0 prefix, can come with REPNE/REPZE prefixes, but they are used together in assembly, only the leftmost would be
encoded to the binary and warning will be issued. This is the behavior of Yasm for duplicate LOCKREP prefixes.

12 years agoAdd AMD TBM instructions.
Jason Garrett-Glaser [Thu, 2 Feb 2012 22:32:06 +0000 (14:32 -0800)]
Add AMD TBM instructions.

Reference: http://support.amd.com/us/Processor_TechDocs/24594_APM_v3.pdf

Also add appropriate CPU bits and directive handling for these.

12 years agoDrop success-path chatter from genperf. 61/head
Ami Fischman [Fri, 2 Mar 2012 22:12:19 +0000 (14:12 -0800)]
Drop success-path chatter from genperf.

13 years agoAdd prebuild step for yasm-verssion.h
BrianGladman [Mon, 31 Oct 2011 18:38:16 +0000 (18:38 +0000)]
Add prebuild step for yasm-verssion.h

13 years agoadd path for YASM-VERSION.h
BrianGladman [Mon, 31 Oct 2011 17:27:56 +0000 (17:27 +0000)]
add path for YASM-VERSION.h

13 years agoBump DEF_VER to 1.2.0 for release. v1.2.0
Peter Johnson [Mon, 31 Oct 2011 05:39:50 +0000 (22:39 -0700)]
Bump DEF_VER to 1.2.0 for release.

13 years agoAdd Mkfiles/vc10/out_copy_rename.bat to distribution.
Peter Johnson [Mon, 31 Oct 2011 07:11:49 +0000 (00:11 -0700)]
Add Mkfiles/vc10/out_copy_rename.bat to distribution.

13 years agoCopy YASM-VERSION.h to Mkfiles for distribution.
Peter Johnson [Mon, 31 Oct 2011 07:10:39 +0000 (00:10 -0700)]
Copy YASM-VERSION.h to Mkfiles for distribution.

13 years agore2c: Work around tmpfile() issue on win32.
Peter Johnson [Mon, 31 Oct 2011 06:50:31 +0000 (23:50 -0700)]
re2c: Work around tmpfile() issue on win32.

tmpfile() defaults to C:\, and on Windows 7 can run into permissions issues.
Add workaround implementation from cairo
(http://cgit.freedesktop.org/cairo/commit/?id=4fa46e3caaffb54f4419887418d8d0ea39816092)

See also: http://msdn.microsoft.com/en-us/library/x8x7sakw(v=VS.80).aspx
(community content section)

13 years agowin64: Default to nobase for .xdata section.
Peter Johnson [Mon, 31 Oct 2011 05:21:57 +0000 (22:21 -0700)]
win64: Default to nobase for .xdata section.

Also add ..imagebase special symbol to force use of a nobase relocation.

[#135 state:resolved]

13 years agore2c: Use tmpfile instead of fixed temporary filename.
Peter Johnson [Mon, 3 Oct 2011 06:20:38 +0000 (23:20 -0700)]
re2c: Use tmpfile instead of fixed temporary filename.

This could cause a race condition when running parallel make.

Tracked down by Volker Braun.

[#238 state:resolved]
[#165 state:resolved]

13 years agoMerge pull request #60 from olsner/struc_base
Peter Johnson [Mon, 3 Oct 2011 05:11:01 +0000 (22:11 -0700)]
Merge pull request #60 from olsner/struc_base

Implement the base offset parameter for the struc macro

13 years agoAdd testcase for struc with base offset 60/head
Simon Brenner [Sun, 2 Oct 2011 03:57:35 +0000 (05:57 +0200)]
Add testcase for struc with base offset

13 years agoImplement the base offset parameter to 'struc'
Simon Brenner [Sun, 2 Oct 2011 03:39:11 +0000 (05:39 +0200)]
Implement the base offset parameter to 'struc'

13 years agonasm-pp.c: Plug a memory leak.
Peter Johnson [Fri, 30 Sep 2011 19:52:07 +0000 (12:52 -0700)]
nasm-pp.c: Plug a memory leak.

13 years agoMerge pull request #59 from pwo/patch-1
Peter Johnson [Wed, 28 Sep 2011 06:18:15 +0000 (23:18 -0700)]
Merge pull request #59 from pwo/patch-1

Fix clang warning.

13 years agoFix clang warning: 59/head
Pawel Worach [Sat, 24 Sep 2011 13:41:08 +0000 (16:41 +0300)]
Fix clang warning:
libyasm/md5.c:166:31: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
        memset(ctx, 0, sizeof(ctx));    /* In case it's sensitive */
               ~~~            ^~~