Skip to content

Add PCOMMIT instruction (zyantific#429)#27

Merged
fengjixuchui merged 19 commits intofengjixuchui:masterfrom
zyantific:master
Mar 20, 2023
Merged

Add PCOMMIT instruction (zyantific#429)#27
fengjixuchui merged 19 commits intofengjixuchui:masterfrom
zyantific:master

Conversation

@fengjixuchui
Copy link
Copy Markdown
Owner

No description provided.

athre0z and others added 19 commits October 23, 2022 00:14
The doc target was renamed in a previous commit and we forgot to update
the corresponding entry in the Makefile.
The theme caused trouble when built on Windows and it was unclear how
to best deal with the dependency on the CSS theme. To simplify matters,
we simply drop the theme from the main repository and instead inject it
via zydoc for the CI documentation builds.
Also, pin the version of the theme to be used.
* Update MSVC projects to VS 2022

NB: The ZydisWinKernel sample still compiles for, and runs on Windows 7 x64 and higher as before. However, some adjustments were made in order for this to work, because the VS2022 WDK officially only recognises 'Windows 10 and higher' as valid target OS. 32 bit support for this sample has NOT survived this update due to new WDK restrictions.

* MSVC: update Zycore includes to add Atomic.h

* MSVC: do not build ZydisTestEncoderAbsolute sample in DLL configs

This sample does not link when Zydis is built as a shared library, due to ZydisGetRelInfo being an internal (non-dllexported) function.

* Sync Zycore/Zydis includes used by the tools/samples MSVC project files

For Zydis, additionally one source file (Disassembler.c) was missing and has also been added.

* MSVC: add Disassemble, DisassembleSimple and EncodeMov samples

* Update runner images

* MSVC: target ISO C11 by default (/std:c11)

* Update zycore to v1.4.1

Co-authored-by: Florian Bernd <git@flobernd.de>
Co-authored-by: Joel Höner <athre0z@zyantific.com>
Zydis currently requests a C++ compiler despite not actually using it.
This breaks build on toolchains without a C++ compiler (e.g. musl libc).

@Tachi107 already did the same for zycore a while ago:

zyantific/zycore-c@8f39333
* Update zycore submodule

* Use ZYAN_DIV64 in ZydisStringAppendDecU64

Avoid a direct 64bit integer division in ZydisStringAppendDecU64 and use
the macro provided by zycore instead, as GCC might generate
unwanted calls to arithmetic functions on 32bit platforms.
@fengjixuchui fengjixuchui merged commit f785b92 into fengjixuchui:master Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants