Commit Graph

257 Commits

Author SHA1 Message Date
Jeremy Drake
25434941c5 genpeimg: fix mistaken section header size.
According to Microsoft docs and observation of real images, section
headers are 40 bytes, not 36.

Signed-off-by: Jeremy Drake <jeremyd2019@users.sourceforge.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-08-17 22:29:18 +03:00
Jeremy Drake via Mingw-w64-public
4613211c6b genpeimg: add option to change image subsystem.
This can be done either by number, or by name.  Most names are from the
documentation for LINK.EXE's /SUBSYSTEM option, but a few were made up
based on the constants and documentation on MS's PE Format document.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-08-08 22:27:07 +03:00
Jeremy Drake
4987839d83 genpeimg: add support for ARMNT and ARM64 images.
Signed-off-by: Jeremy Drake <jeremyd2019@users.sourceforge.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-08-04 23:19:48 +03:00
Jeremy Drake
7e08f4952a genpeimg: update DLL characteristics flags
Added high-entropy-va and control-flow-guard flags.

Also fixed an apparent copy-paste error on posix subsystem, and added
numeric value to XBOX subsystem for consistency with the others.

Signed-off-by: Jeremy Drake <jeremyd2019@users.sourceforge.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-08-04 23:19:40 +03:00
Martin Storsjö
fa1ad28174 widl: Update to Wine 6.12
This allows picking up the target CPU from a tool name prefix,
and allows using -m32/-m64 on arm/aarch64.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-07-03 00:39:58 +03:00
Jacek Caban
063fb9eda9 widl: Update to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-03-20 13:48:42 +01:00
Jacek Caban
94cc7f671b widl: Update to Wine 6.3.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-03-01 15:35:25 +01:00
Jacek Caban
9281cef234 widl: Updated to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-02-19 17:03:44 +01:00
Jacek Caban
ea40a87ad0 widl: Update to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-02-18 10:56:15 +01:00
Jacek Caban
f962bd8872 widl: Update to Wine 6.2.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-02-13 10:16:28 +01:00
Jacek Caban
f9dfc35fd9 widl: Update to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-02-08 23:30:12 +01:00
Jacek Caban
df0d14434a widl: Update to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-02-08 13:03:42 +01:00
Jacek Caban
1c139c8816 widl: Update to Wine 6.1.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2021-01-31 17:57:11 +01:00
Jacek Caban
ad98746ace widl: Update to current Wine version. 2020-12-25 14:20:15 +01:00
Jacek Caban
bc33040ac4 widl: Update to Wine 6.0-rc3.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-18 20:14:37 +01:00
Jacek Caban
1bf35edea5 widl: Update to Wine 6.0-rc1. 2020-12-07 22:17:50 +01:00
Jacek Caban
41b0e14e20 widl: Update to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-10-12 20:34:19 +02:00
Jacek Caban
afda4ac8a9 widl: Updated to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-09-08 13:42:52 +02:00
Jacek Caban
6936d7dff3 widl: Update to current Wine version. 2020-07-22 14:48:25 +02:00
Martin Storsjö
05cce8e867 widl: Regenerate Makefile.in
Signed-off-by: Martin Storsjö <martin@martin.st>
2020-06-12 15:10:49 +03:00
Martin Storsjö
70b3baf5af widl: Remove the apparently unused getopt1.c source file
This gets rid of a build time warning about redefinition of
HAVE_CONFIG_H.

This file isn't updated by the normal wine-import.sh sync script.

Signed-off-by: Martin Storsjö <martin@martin.st>
2020-06-12 15:10:22 +03:00
Martin Storsjö
2ecdc06734 widl: Update the relocatability patch to remove an unused variable
The patch removes the only use of the variable i here, thus remove
it to get rid of one build time warning.

Signed-off-by: Martin Storsjö <martin@martin.st>
2020-06-12 14:20:46 +03:00
Jacek Caban
7441d86677 widl: Updated to Wine version 3bb824f98891e8. 2020-05-19 18:02:26 +02:00
Jacek Caban
dc2a522f29 widl: Remove no longer needed helpers. 2020-05-19 17:00:51 +02:00
Jacek Caban
84c9343cd8 widl: Compute relative binary to include dir path in configure. 2020-05-19 17:00:40 +02:00
Liu Hao
fdb88f69b9 genlib: Regenerate configure
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-04-06 12:01:21 +08:00
Stephen Kitt
8f1d602afe Detect -lm in genlib
genlib's configure checks for -lmangle before -lm; as a result, the
-lm checks include -lmangle which fails because the required library
path isn't specified. To avoid this, we check for -lm before checking
for -lmangle.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-04-06 11:58:06 +08:00
Martin Storsjö
d5fa66cc62 widl: Remove an unnecessary platform specific ifdef
These files don't seem to need anything from malloc.h; they
include alloca.h for that function anyway, and stdlib.h provides
malloc and free. (Build tested for linux and mingw.)

This fixes building on other BSDs.

Signed-off-by: Martin Storsjö <martin@martin.st>
2020-03-01 23:22:45 +02:00
Pali Rohár
2d28f1d204 genstubdll: Remove some erroneous aliases from example
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-02-21 18:15:06 +08:00
Jacek Caban
46d18cc9d0 widl: Update to Wine 5.0-rc1. 2019-12-16 14:15:52 +01:00
Martin Storsjö
1f903cc153 widl: Regenerate Makefile.in
Signed-off-by: Martin Storsjö <martin@martin.st>
2019-12-02 23:08:37 +02:00
Martin Storsjö
e39d0f34fb widl: Quote path names in the makefile, to fix installing into a path that contains spaces
Signed-off-by: Martin Storsjö <martin@martin.st>
2019-12-02 23:08:37 +02:00
Jacek Caban
bae5878fcb widl: Updated to Wine 4.19. 2019-11-02 11:35:01 +01:00
Jacek Caban
60d5a66ae5 widl: Updated to current Wine version. 2019-08-22 13:23:15 +02:00
Jacek Caban
f34622001f widl: Updated to Wine 4.12.1.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-08-01 14:42:33 +02:00
Jacek Caban
d539d36fd5 widl: Update to current Wine version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-04-08 18:45:17 +02:00
Jacek Caban
b6ecdbe597 widl: Updated to current Wine version. 2019-03-21 12:58:43 +01:00
Jacek Caban
0e1da6b52e Update widl to Wine 4.2. 2019-02-16 18:53:10 +01:00
Jacek Caban
172cf5520c widl: Updated to current Wine version. 2018-11-13 00:13:34 +01:00
Jacek Caban
0d46d8c3a2 widl: Imported to current Wine version. 2018-11-09 21:23:45 +01:00
Jacek Caban
8a9a6eebe1 widl: Updated to current Wine version. 2018-11-06 22:22:32 +01:00
Jacek Caban
e35420773b widl: Updated to current Wine version. 2018-10-31 20:24:35 +01:00
Martin Storsjö
5a61034d17 widl: Regenerate Makefile.in and configure
Signed-off-by: Martin Storsjö <martin@martin.st>
2018-10-08 13:29:31 +03:00
Martin Storsjö
f1a55b8f1f widl: Allow overriding the default include path
At least clang looks for headers in prefix/include in addition to
prefix/triplet/include. This allows configuring widl to look for them
in that directory as well.

When shipping sysroots for more than one or two target architectures,
allowing sharing the headers in a triplet-less include directory saves
a significant amount of space.

Signed-off-by: Martin Storsjö <martin@martin.st>
2018-10-08 13:29:10 +03:00
Martin Storsjö
1c35bd293d widl: Regenerate automake/autoconf files.
Signed-off-by: Martin Storsjö <martin@martin.st>
2018-09-25 16:27:04 +03:00
Martin Storsjö
8ad9136000 widl: Stop using AC_FUNC_MALLOC, AC_FUNC_REALLOC and AC_FUNC_STRTOD
These break cross compilation; removing them fixes cross compilation.

These not only check for the functions malloc/realloc (which are
guaranteed to be available as long as the build environment is ANSI C
compliant), but check for a "GNU libc compatible malloc".

The check for such a malloc is a runtime check, so when cross compiling,
the check just fails.

When the check for malloc has failed, all malloc calls are redirected
to rpl_malloc instead, which the project is supposed to provide as
a replacement for malloc, with the right features, but no such
fallback function exists.

Just remove these checks, and assume the ANSI C malloc/realloc/strtod
exist.

Signed-off-by: Martin Storsjö <martin@martin.st>
2018-09-25 16:24:54 +03:00
Jacek Caban
cb6bc23b4d Update widl to current Wine version. 2018-08-31 10:14:20 +02:00
Tom Ritter
df24f3c7e9 Add Error Codes between 1460 and 1471
Signed-off-by: Liu Hao <lh_mouse@126.com>
2018-08-03 13:05:47 +08:00
Martin Storsjo
ae603a8512 widl: Use memmove instead of memcpy for copies that potentially can overlap
This was pointed out by address sanitizer.

Signed-off-by: Martin Storsjo <martin@martin.st>
2018-06-14 14:36:15 +03:00
Martin Storsjo
d0e46d2d61 Revert "widl: Use separated buffer for result in simplify_path."
This reverts commit cd954f9322.

That commit was nonsense; this function is supposed to clean up
a path name in-place in the source buffer, if possible. By using
a separate buffer as the target, the caller of the function won't
notice the effect of it. The rest of the function expects to read
the string from the target buffer itself, e.g. the first call
after xmalloc is sanitise_path() on the newly allocated,
uninitialized result buffer, resulting in use of uninitialized data.

Signed-off-by: Martin Storsjo <martin@martin.st>
2018-06-14 14:36:15 +03:00