]>
granicus.if.org Git - yasm/log
Matt Oliver [Mon, 3 Apr 2017 17:58:31 +0000 (03:58 +1000)]
allow movbe to be suffixed with wlq in gas syntax.
Matt Oliver [Mon, 3 Apr 2017 14:34:47 +0000 (00:34 +1000)]
fix memory errors when using gas processor with coff object output.
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.
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.
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
Brian Gladman [Tue, 7 Mar 2017 20:38:37 +0000 (20:38 +0000)]
add Visual Studio 2017 build files
Brian Gladman [Tue, 7 Mar 2017 20:31:18 +0000 (20:31 +0000)]
add missing VC++ header
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.
Brian Gladman [Fri, 6 Nov 2015 11:33:59 +0000 (11:33 +0000)]
Merge branch 'master' of github.com:yasm/yasm
Brian Gladman [Fri, 6 Nov 2015 11:33:14 +0000 (11:33 +0000)]
update MSVC14 build
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
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
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
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
Henrik Gramner [Sat, 17 Oct 2015 19:32:34 +0000 (21:32 +0200)]
Support numbers prefixed with + or - in %ifnum
Brian Gladman [Mon, 27 Jul 2015 19:48:42 +0000 (20:48 +0100)]
add Visual Studio build files missed in thye initial commit
Brian Gladman [Sat, 16 May 2015 14:17:55 +0000 (15:17 +0100)]
Add build files for Visual Studio 2015
Scott Graham [Fri, 20 Feb 2015 01:05:38 +0000 (17:05 -0800)]
Avoid shadowing warning when building with VS2015
Peter Johnson [Fri, 2 Jan 2015 05:51:00 +0000 (21:51 -0800)]
Merge pull request #68 from jix/master
Optimization and improved @jix
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
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
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.
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.
Peter Johnson [Sun, 5 Oct 2014 16:50:33 +0000 (09:50 -0700)]
Fix a few more cases of case sensitivity in module handling.
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]
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).
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
Peter Johnson [Sun, 10 Aug 2014 07:48:20 +0000 (00:48 -0700)]
Bump DEF_VER to 1.3.0 for release.
Peter Johnson [Mon, 11 Aug 2014 04:38:48 +0000 (21:38 -0700)]
Allow building of static executables with cmake.
Peter Johnson [Sun, 10 Aug 2014 19:33:12 +0000 (12:33 -0700)]
Add missing YASM_LIB_DECL declarations.
Peter Johnson [Sun, 10 Aug 2014 19:32:50 +0000 (12:32 -0700)]
genstring.py: Make Python3-compatible.
Peter Johnson [Sun, 10 Aug 2014 17:58:33 +0000 (10:58 -0700)]
Warnings cleanup.
Peter Johnson [Sun, 10 Aug 2014 17:41:51 +0000 (10:41 -0700)]
Add vsyasm to cmake build.
Peter Johnson [Sun, 10 Aug 2014 17:40:01 +0000 (10:40 -0700)]
VersionGen.cmake: Fix endif.
Peter Johnson [Sun, 10 Aug 2014 17:28:25 +0000 (10:28 -0700)]
Update .gitignore for automake changes.
Peter Johnson [Sun, 10 Aug 2014 17:26:16 +0000 (10:26 -0700)]
Turn on subdir-objects automake option.
Peter Johnson [Sun, 10 Aug 2014 17:23:36 +0000 (10:23 -0700)]
Update gettext.
Peter Johnson [Sun, 10 Aug 2014 17:18:30 +0000 (10:18 -0700)]
Add cmake files to distribution.
Peter Johnson [Sun, 10 Aug 2014 07:51:51 +0000 (00:51 -0700)]
Bump copyright dates for 2014.
Peter Johnson [Sun, 10 Aug 2014 07:46:58 +0000 (00:46 -0700)]
Add vc12 files to distribution.
Peter Johnson [Sun, 10 Aug 2014 07:43:17 +0000 (00:43 -0700)]
dist-hook: Copy YASM-VERSION.h to Mkfiles/vc12.
Peter Johnson [Mon, 14 Apr 2014 05:55:47 +0000 (22:55 -0700)]
coff-objfmt.c: Add missing break.
[#268 state:resolved]
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()
Maks Naumov [Fri, 11 Apr 2014 18:05:55 +0000 (21:05 +0300)]
missing 'break' in initalen()
Brian Gladman [Sun, 6 Apr 2014 07:40:31 +0000 (08:40 +0100)]
Rename a Visual Studio 2013 build file
Brian Gladman [Sun, 6 Apr 2014 07:35:10 +0000 (08:35 +0100)]
Add Visual Studio 2013 build files
Peter Johnson [Sun, 6 Apr 2014 06:34:27 +0000 (23:34 -0700)]
Add cpu ivybridge, haswell, broadwell, skylake.
Peter Johnson [Sat, 5 Apr 2014 07:17:13 +0000 (00:17 -0700)]
Add Intel ADX, RDSEED, and SMAP instructions.
Peter Johnson [Fri, 14 Feb 2014 20:01:43 +0000 (12:01 -0800)]
Add Intel SHA instructions.
Contributed by: Mark Charney @ Intel
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
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.
Brian Gladman [Wed, 13 Nov 2013 13:15:26 +0000 (13:15 +0000)]
test commit
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
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]
Peter Johnson [Wed, 3 Jul 2013 18:25:50 +0000 (11:25 -0700)]
Update config.guess and config.sub.
[#255 state:resolved]
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]
Peter Johnson [Fri, 21 Jun 2013 17:02:32 +0000 (10:02 -0700)]
Unbreak distcheck.
Peter Johnson [Sat, 1 Jun 2013 16:40:34 +0000 (09:40 -0700)]
Fix vpbroadcastq.
Patch by: Jason Garrett-Glaser <jason@x264.com>
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
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.
BrianGladman [Tue, 11 Sep 2012 18:57:20 +0000 (19:57 +0100)]
add new elf file to visual studio 2010 build
Peter Johnson [Fri, 31 Aug 2012 06:53:41 +0000 (23:53 -0700)]
gas-parse.c: Eliminate warning.
Peter Johnson [Fri, 31 Aug 2012 06:53:29 +0000 (23:53 -0700)]
Regen yasm_arch.7 and yasm_objfmts.7.
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/
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
Peter Johnson [Fri, 31 Aug 2012 06:34:49 +0000 (23:34 -0700)]
Improve check for Cython version.
[#249 state:resolved]
Peter Johnson [Sat, 18 Aug 2012 20:55:10 +0000 (13:55 -0700)]
Fix vphaddudq opcode; should be DB rather than D8.
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.
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.
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
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
Jannis Harder [Wed, 1 Aug 2012 13:30:50 +0000 (15:30 +0200)]
squashme
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
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
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
Peter Johnson [Fri, 1 Jun 2012 04:43:51 +0000 (21:43 -0700)]
Merge pull request #65 from vmt/master
Fix definition of pmulhrw
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".
Scott Graham [Thu, 10 May 2012 03:48:16 +0000 (20:48 -0700)]
fix a couple warnings when building on win32
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.
Nico Weber [Sun, 11 Mar 2012 06:52:34 +0000 (22:52 -0800)]
Don't use a C++ comment in a C source file.
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]
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
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
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.
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.
Ami Fischman [Fri, 2 Mar 2012 22:12:19 +0000 (14:12 -0800)]
Drop success-path chatter from genperf.
BrianGladman [Mon, 31 Oct 2011 18:38:16 +0000 (18:38 +0000)]
Add prebuild step for yasm-verssion.h
BrianGladman [Mon, 31 Oct 2011 17:27:56 +0000 (17:27 +0000)]
add path for YASM-VERSION.h
Peter Johnson [Mon, 31 Oct 2011 05:39:50 +0000 (22:39 -0700)]
Bump DEF_VER to 1.2.0 for release.
Peter Johnson [Mon, 31 Oct 2011 07:11:49 +0000 (00:11 -0700)]
Add Mkfiles/vc10/out_copy_rename.bat to distribution.
Peter Johnson [Mon, 31 Oct 2011 07:10:39 +0000 (00:10 -0700)]
Copy YASM-VERSION.h to Mkfiles for distribution.
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)
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]
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]
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
Simon Brenner [Sun, 2 Oct 2011 03:57:35 +0000 (05:57 +0200)]
Add testcase for struc with base offset
Simon Brenner [Sun, 2 Oct 2011 03:39:11 +0000 (05:39 +0200)]
Implement the base offset parameter to 'struc'
Peter Johnson [Fri, 30 Sep 2011 19:52:07 +0000 (12:52 -0700)]
nasm-pp.c: Plug a memory leak.
Peter Johnson [Wed, 28 Sep 2011 06:18:15 +0000 (23:18 -0700)]
Merge pull request #59 from pwo/patch-1
Fix clang warning.
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 */
~~~ ^~~