Alexandre Julliard
492ac292b9
Added support for building a dll from a .def file for cases where we
...
don't want to write a full .spec.
Renamed --spec option to --dll for consistency.
2004-02-17 20:36:16 +00:00
Alexandre Julliard
095b498b17
Renamed --exe-mode option to --mode now that it can be used for dlls
...
too.
2004-02-16 22:24:24 +00:00
Marcus Meissner
d496eb08e7
No need to check for DllEntryPoint style constants.
2004-02-16 20:24:32 +00:00
Alexandre Julliard
5e4a5beccb
Added native mode dll support (based on a patch by Marcus Meissner).
2004-02-13 22:42:13 +00:00
Alexandre Julliard
8611e654fc
Store all information about the current dll in a structure instead of
...
using global variables to make it easier to reuse the parsing
routines.
2004-02-11 06:41:01 +00:00
Robert Shearman
932a102dcd
Fix proc name reported in delay load failure.
2004-02-09 20:58:42 +00:00
Alexandre Julliard
f33de52f5e
Tweaked the init code so that it works properly no matter what linker
...
options are used.
2004-01-15 04:58:17 +00:00
Alexandre Julliard
3604824262
If supported by the linker, prevent the ELF loader from calling the
...
dll constructors at load time and call them from the dll entry point
instead.
2004-01-08 03:36:53 +00:00
Alexandre Julliard
0b19a6f7bc
Better support for div and ldiv in Winelib apps.
2003-11-28 23:17:28 +00:00
Dimitrie O. Paun
c0232546bd
Make the winehq.org domain the official one.
2003-11-26 03:55:01 +00:00
Alexandre Julliard
f01e7c6364
open_input_file(): try to open the file in the current directory
...
before trying the source directory.
2003-11-20 04:21:56 +00:00
Alexandre Julliard
18b4cbf12a
Put better values for code and data sizes in the NT header of builtin
...
dlls.
2003-11-03 22:19:44 +00:00
Alexandre Julliard
03711317de
Better defaults for heap and stack sizes.
2003-10-30 22:49:01 +00:00
Alexandre Julliard
4cb001967a
Switch back to the main process stack before calling exception
...
handlers.
2003-10-28 00:30:55 +00:00
Pierre d'Herbemont
e961418bcf
Fix PowerPC assembler syntax mistakes.
2003-10-27 22:04:54 +00:00
Pierre d'Herbemont
6661f30409
Change mctr PowerPC asm instruction to mtctr. Add Support for the
...
.text section and the .space section of darwin's ld.
2003-10-24 00:27:27 +00:00
Alexandre Julliard
67d9f38059
Added __wine_set_signal_fs function to avoid sharing the
...
SYSLEVEL_Win16CurrentTeb variable between kernel and ntdll.
On the kernel side, replaced SYSLEVEL_Win16CurrentTeb by
CallTo16_TebSelector stored directly in the asm relay code to avoid a
run-time relocation.
2003-10-08 22:59:22 +00:00
Daniel Marmier
9bb19ac2d2
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-03 03:35:20 +00:00
Alexandre Julliard
60c857e19c
Store the dll name for the export directory inside the exported names
...
list.
2003-09-26 04:36:46 +00:00
Dimitrie O. Paun
8b255842ec
Remove the obsolete pascal16 (replaced by pascal -ret16).
2003-09-26 04:32:19 +00:00
Jon Griffiths
821b228cda
MSVC warning fix.
2003-09-24 05:12:28 +00:00
Steven Edwards
a23b8c8fbe
Porting fix for Alpha.
2003-09-22 19:27:56 +00:00
Richard Cohen
5bcf35a385
Add printf format attributes & fix the warnings.
2003-09-19 00:19:16 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard
7df1b9e03a
Start using the exported TEB structure from winternl.h where
...
possible.
2003-08-28 19:57:35 +00:00
Alexandre Julliard
b91e9cb3e6
Renamed a few more TEB fields.
2003-08-28 03:44:41 +00:00
Alexandre Julliard
617839d522
Added varargs support for 16-bit entry points.
...
Added -ret16 entry point flag to allow 16-bit cdecl and varargs
function to return 16-bit values too.
2003-08-27 02:20:44 +00:00
Alexandre Julliard
a5b961c2b0
Moved selector fixup for the relay code to the callto16 exception
...
handler.
Make sure to only use pop instructions to modify segment registers in
the relay code to simplify the selector fixup.
2003-08-25 23:48:30 +00:00
Alexandre Julliard
3be5d62b29
Moved 16-bit calls initialization and exception handling to kernel32.
...
Store the call_to_16 return address on the stack from the C code so
that we don't need two variants of call_to_16_regs.
2003-08-25 00:56:37 +00:00
Alexandre Julliard
3a5b7cf105
Extended WOWCallback16Ex to support register functions too. This
...
allows simplifying the wine_call_to_16 assembly code by moving part of
it to C code, and getting rid of the extra kernel exports.
2003-08-23 23:30:51 +00:00
Alexandre Julliard
af62e83d1c
Got rid of 16-bit glue code generation since it is no longer used.
2003-08-23 00:45:20 +00:00
Alexandre Julliard
346ca95af6
Support for Mac OS X powerpc register names (based on a patch by
...
Pierre d'Herbemont).
2003-08-13 21:57:42 +00:00
Alexandre Julliard
e547e10be0
Make sure dllname doesn't get optimized out (spotted by Marcus
...
Meissner).
2003-08-02 00:45:34 +00:00
Alexandre Julliard
152b98fa63
Added -private flag for entry points that shouldn't be imported from
...
other dlls.
Support PRIVATE flag in .def files (based on a patch by Jon
Griffiths).
2003-07-28 19:19:48 +00:00
Pierre d'Herbemont
13c308caa7
Change __PPC__ flag to __powerpc__.
2003-07-21 23:51:24 +00:00
Francois Gouget
1568fa3b21
Make sure to return an error if the file generation fails.
2003-06-23 19:51:21 +00:00
Alexandre Julliard
28b64db6d5
Only print warning on nm failure because it fails on darwin if there
...
are no symbols (reported by Pierre d'Herbemont).
2003-05-14 19:36:28 +00:00
Alexandre Julliard
0c2c71bcae
Resource names don't need a case-sensitive comparison; this avoids
...
depending on libwine_unicode.
2003-04-21 23:27:21 +00:00
Alexandre Julliard
6d1f9b037d
Ignore "U " in nm -u output.
2003-04-10 18:36:40 +00:00
Alexandre Julliard
08dfb8c91a
Don't output register function code if it's a forwarded entry point.
2003-04-03 18:05:17 +00:00
Alexandre Julliard
5577637034
Added support for specifying an stdcall dll entry point.
2003-04-01 00:08:32 +00:00
Alexandre Julliard
78675ba234
Store %gs in the TEB on every call to 16-bit code, and don't restore
...
it from the TEB for signals that did not happen in 16-bit code.
2003-03-25 00:36:16 +00:00
Alexandre Julliard
0c9abbeead
Avoid reference to wine_get_cs function from libwine.
2003-03-24 19:44:20 +00:00
Alexandre Julliard
9e4fc4c9b6
Converted winebuild option parsing to use getopt_long. Added a number
...
of long aliases for the existing short options.
2003-03-23 01:12:30 +00:00
Christian Costa
f814cf87af
Make use of .half and/or .asciiz assembler keywords when necessary.
2003-03-23 00:18:26 +00:00
Alexandre Julliard
2ee8b5bb13
Replaced mkstemp by mkstemps from libiberty.
...
Removed a couple of unnecessary portability functions.
2003-03-20 21:07:49 +00:00
Alexandre Julliard
f84dbdce51
Added check for duplicate ordinals, and fixed bug it uncovered in
...
msnet32.spec.
2003-03-20 03:30:58 +00:00
Alexandre Julliard
6a9fe36de2
Created a separate static portability library and moved some of the
...
libwine routines in there.
2003-03-19 22:09:16 +00:00
Alexandre Julliard
49edd19650
Handle end of line as a syntactic element in the spec file parser;
...
backslashes can be used to continue lines. This allows us to skip over
errors to continue parsing, and also to make specification of an entry
point link name optional.
2003-03-18 05:30:54 +00:00
Alexandre Julliard
f489a272d2
Removed support for the 'forward' ordinal type.
2003-03-17 04:56:10 +00:00
Alexandre Julliard
52ec0a3ff3
Disable 'variable' in Win32 spec files.
...
Added support for forwarded 'extern' ordinals.
2003-03-17 00:02:11 +00:00
Alexandre Julliard
daecaba4a3
Don't enter an imported dll in the import table at all if we didn't
...
need to import any symbol from it.
2003-03-16 23:59:48 +00:00
Alexandre Julliard
551797bc57
Properly save/restore %gs register across 16-bit calls.
2003-02-27 21:11:13 +00:00
Alexandre Julliard
f8bac62769
Do not define __WINESRC__ when building tools and miscemu.
2003-01-09 01:57:15 +00:00
Dimitrie O. Paun
8b36681bad
Rename __WINE__ to __WINESRC__.
2003-01-04 00:52:18 +00:00
Alexandre Julliard
60d84e8127
Updated for recent options changes.
2003-01-02 19:30:17 +00:00
Dimitrie O. Paun
959562bdcd
Add the -F option to set a DLL's filename.
2003-01-02 17:48:05 +00:00
Alexandre Julliard
9ba2e89ae5
Don't ignore sprintf/sscanf imports, semantics are not exactly the
...
same on Windows.
2002-12-20 00:36:18 +00:00
Alexandre Julliard
470cbf2757
Added support for defining forward functions as stdcall so that we can
...
get the proper number of arguments for stdcall decoration.
2002-12-15 01:22:40 +00:00
Alexandre Julliard
ada5e6521b
Implemented import libraries; on Unix we import the .def file
...
directly, on Mingw we use it to build the .a library.
2002-12-12 22:03:14 +00:00
Alexandre Julliard
b42dc56fce
Made stdcall decoration in .def files the default, and added -k option
...
to switch it off.
2002-12-12 04:06:28 +00:00
Alexandre Julliard
72e1c64345
Added list of symbols to ignore by default in winebuild.
...
Made the -i option support removing ignored symbols too.
Removed the -noimport flag in spec files.
2002-12-12 02:20:47 +00:00
Alexandre Julliard
2cd4ed2e15
Replaced 'ignore' spec file directive by the -i option.
2002-12-07 23:54:12 +00:00
Alexandre Julliard
310de886e9
Check file header to differentiate between object files and resources
...
so that the -r option is not necessary.
2002-12-06 23:26:29 +00:00
Alexandre Julliard
a9135e8333
Removed support for 'rsrc' spec file statement.
2002-11-18 23:16:09 +00:00
Eric Frias
1046fe3051
Added quotes to assembly language output.
2002-11-06 22:07:38 +00:00
Alexandre Julliard
910851a20e
Added winebuild -e option to specify the entry point and removed the
...
'init' spec file directive.
Winebuild long options now use a more standard double dash format
(older format still supported for backwards compatibility).
2002-11-06 20:02:59 +00:00
Alexandre Julliard
1e1313d54c
Made the dll entry point default to DllMain and removed most of the
...
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Alexandre Julliard
07f736bc3d
Hack to detect register functions automatically so that relay debug
...
also works for functions using the DEFINE_REGS_ENTRY_POINT macros.
2002-11-04 22:50:24 +00:00
Alexandre Julliard
7aee90762a
Merged wine_call_to_16_long and wine_call_to_16_short into a single
...
function.
2002-10-18 00:29:32 +00:00
Alexandre Julliard
4ce72031a0
Don't list register functions in the .def file.
2002-10-09 20:28:06 +00:00
Marcus Meissner
2ca7000dc8
Added ctype.h.
2002-09-16 23:58:59 +00:00
Alexandre Julliard
16a303b376
Replaced 'heap' .spec statement by a command line option.
...
Updated winebuild manpage.
2002-09-12 22:51:20 +00:00
Dimitrie O. Paun
7e035e290a
Remove support for 'file', 'name', and 'mode' in .spec files.
2002-09-12 18:10:05 +00:00
Dimitrie O. Paun
7cd2edbb66
Add support for naming the DLL from the command line.
2002-09-12 17:23:25 +00:00
Patrik Stridvall
51e6c0ccb1
MSVC compatibility fixes.
2002-08-31 19:04:14 +00:00
Alexandre Julliard
b0c6e36d5d
Fixed line numbers in error messages and improved redefinition error
...
(based on a patch by Jon Griffiths).
2002-08-27 22:32:01 +00:00
Alexandre Julliard
f08b186373
Try to derive temp file names from output file names for better
...
portability.
2002-08-27 22:29:26 +00:00
Marcus Meissner
7678791d92
Implemented delayed import assembler thunks for PPC.
2002-08-20 00:00:49 +00:00
Dmitry Timoshkov
c63d98038a
Include protection for <unistd.h>, <sys/types.h> and <sys/stat.h>.
2002-08-17 18:28:43 +00:00
François Gouget
ebd110bc6a
Fix command-line parsing for Winelib applications.
2002-08-15 23:21:03 +00:00
Marcus Meissner
f0b8fe562e
The text section alignment should be default, not 1.
2002-08-15 21:47:27 +00:00
Alexandre Julliard
124eaf809c
Builtin modules must be aligned on 64K boundary.
2002-08-14 21:09:55 +00:00
Alexandre Julliard
6006757996
Setup exception frame around 16-bit calls to unwind stack properly.
2002-08-13 03:29:17 +00:00
Alexandre Julliard
1862a67d2d
In -spec and -exe mode, accept multiple object files and link them
...
together internally to find the undefined symbols.
In -glue mode, accept multiple C files and generate a single glue
file for all of them.
2002-08-01 18:34:12 +00:00
Alexandre Julliard
3bd7d224fc
Added a winebuild man page.
2002-07-28 18:58:41 +00:00
Alexandre Julliard
15a75259bd
Added support for importing by ordinal.
2002-07-28 17:54:31 +00:00
Alexandre Julliard
112c665f83
Set correct dll file name when building a .def file.
2002-07-28 17:52:01 +00:00
Alexandre Julliard
d25878f28e
Put correct ordinal hints in the import table.
2002-07-25 00:25:40 +00:00
Alexandre Julliard
65c6d38581
Replace all uses of PREFIX and @function by the __ASM_NAME and
...
__ASM_FUNC macros.
2002-07-22 20:47:11 +00:00
Gregg Mattinson
803eb16dfa
- Replaced .previous with a .section statement for the appropriate
...
section.
- '.section .text' is incorrect. It should be '.section ".text"'.
2002-07-05 00:20:42 +00:00
Alexandre Julliard
77afd6c47e
Made some more spec file entries optional or unnecessary.
...
Fixed a few DLLName/DLLFileName mismatches.
2002-06-21 19:15:45 +00:00
Steven Edwards
a0587c4a08
Portability fix.
2002-06-20 22:44:41 +00:00
Alexandre Julliard
f673b71ece
Fixed make install target to work even when nothing has been compiled
...
yet.
Added install-lib and install-dev targets to allow partial
installations; moved winemaker.man and winelauncher.in to better fit
in the new install categories.
2002-06-14 23:48:27 +00:00
Alexandre Julliard
cceab98642
Unregister 16-bit dlls on module unload.
2002-06-14 23:42:53 +00:00
Vincent Béron
9a62491660
Removed trailing whitespace.
2002-05-31 23:06:46 +00:00
Alexandre Julliard
5e47acbc6d
Only add extra symbols if they are not already exported by this dll.
2002-05-25 21:09:15 +00:00
Alexandre Julliard
7fbd74ea55
Replaced the GET/PUT_UA macros by memcpy. Fixed a few big-endian
...
issues.
2002-05-23 02:53:10 +00:00
Alexandre Julliard
476aabc95a
Do not output stubs in the .def file.
2002-05-19 22:29:34 +00:00
Alexandre Julliard
bf90f4db87
Adapted to use the argc/argv variables from libwine.
...
Automatically import libraries that contain the symbols that the
.spec.c file is using.
2002-05-16 23:17:37 +00:00