michael
6ad0a9cc26
* Improved interpretation of shebang line under linux. Added --set-cache argument
...
git-svn-id: trunk@17951 -
2011-07-07 19:03:08 +00:00
sergei
5d5ddbbe3e
* Revert rounding section data size, it should be done in a more sophisticated way
...
git-svn-id: trunk@17950 -
2011-07-07 11:34:57 +00:00
sergei
2d96c34b06
* Improvements to PE executable output:
...
* Clear bits in section flags, that are only valid for object files
* Round section datasize up to filealignment (PECOFF v8 documentation requires this)
* Zero datapos and datasize for all sections w/o data, not just for .bss
* Produce IMPORT_ADDRESS_TABLE directory in exe header
* Entirely smartlink away unused DLLs (these used to have two terminating thunks left)
git-svn-id: trunk@17949 -
2011-07-06 20:55:57 +00:00
sergei
cd94bb5edf
* tls_index must be renamed everywhere, forgotten part of r17943.
...
git-svn-id: trunk@17948 -
2011-07-06 20:33:45 +00:00
michael
718fc1ccd1
* Force .pas extension if extension not in .pas .pp .lpr
...
git-svn-id: trunk@17947 -
2011-07-06 20:16:45 +00:00
michael
31df8d516b
* Allow .cgi as extension
...
git-svn-id: trunk@17946 -
2011-07-06 20:14:30 +00:00
michael
1726c0b14d
* Force an extension on cache filename, so extension can be skipped in script name.
...
git-svn-id: trunk@17945 -
2011-07-06 19:47:47 +00:00
sergei
d9c399f6a1
* Partially reverted rev.17798: printing the runtime error message must remain in InternalExit.
...
Moving it to SysFlushStdIo causes a multithreaded program to print several messages with meaningless stack traces.
git-svn-id: trunk@17944 -
2011-07-06 17:40:34 +00:00
sergei
ea1e44c036
* Hacking TLS callbacks into proper shape, part 2:
...
- Completely removed DLL_PROCESS_DETACH callback for executables. Reason: 1) it is executed after RTL has been shut down and called ExitProcess(), at which point it is really not a good idea to do the cleanup. 2) In executable (in contrast with DLL) it is just fine to leave remaining resources alone and let OS reclaim them.
* Using 'cvar' for _tls_used and _tls_index to get proper prefixing without $ifdef's.
git-svn-id: trunk@17943 -
2011-07-06 16:43:13 +00:00
pierre
c529921fc8
* clarify environment processing
...
git-svn-id: trunk@17942 -
2011-07-06 16:23:10 +00:00
pierre
51b867e6c3
Fix USEENV, export DOTESTENV was missing
...
git-svn-id: trunk@17941 -
2011-07-06 16:18:05 +00:00
sergei
c32e4b291e
* Fixed compilation for x86_64-win64
...
git-svn-id: trunk@17940 -
2011-07-06 09:39:50 +00:00
sergei
59ac157b50
sysinit*.pp: Factored common code into include file.
...
git-svn-id: trunk@17939 -
2011-07-05 13:25:51 +00:00
sergei
138c2b6b0a
* Hacking TLS callbacks into proper shape:
...
- Do not call DLL hooks from exe callback handler.
- Do not call SysInitMultitheading from DLL_THREAD_ATTACH handler, it may only be called from the main thread. See comments in syswin.inc for details. Reverts rev. 17892.
+ To guarantee that SysInitMultithreading is called from the main thread, assume executables always multithreaded, just like DLLs are.
- Also removed all checks with MainThreadIdWin32, except checks for double DLL_PROCESS_DETACH in DLLs. They duplicate what Windows already does (the main thread invokes only PROCESS_ATTACH/PROCESS_DETACH and never THREAD_ATTACH/THREAD_DETACH callbacks).
* Attempts to avoid double initialization/finalization (once in callback, second time in normal control flow).
* Net result: webtbs/tw2423 and webtbs/tw15530 fixed, webtbs/tw3661 broken (because heaptrc does not support checking pointers in TLS area, and with 'always multithreaded' apps the Output varible moves into TLS).
git-svn-id: trunk@17938 -
2011-07-05 11:57:11 +00:00
sergei
d11d08af73
* heaptrc.pp: In case of early multithreading initialization, initialize all related items (namely, main_relo_todolist), not just the critical section. main_relo_todolist is used later without assigned checks, and it is also used as a flag to destroy the critical section.
...
git-svn-id: trunk@17937 -
2011-07-05 08:49:24 +00:00
pierre
cdcabe3ee4
* Prevent propagation of ' !proxy' environment variable to programs launched by Dos.exec by renaming it to '_!proxy' after handling in startup code
...
git-svn-id: trunk@17936 -
2011-07-05 06:54:24 +00:00
joost
36ac001d09
* Renamed fpmake_disabled.pp to fpmake.pp
...
git-svn-id: trunk@17935 -
2011-07-04 21:03:57 +00:00
pierre
cff85bdb3b
* Rename ag386nsm.pas unit source to agx86nsm.pas
...
git-svn-id: trunk@17933 -
2011-07-04 09:13:55 +00:00
pierre
f6ab12d677
* Move ag386nsm.pas to x86 directory
...
git-svn-id: trunk@17932 -
2011-07-04 09:08:54 +00:00
pierre
54fc0bf694
Add missing x86_64 -A options
...
git-svn-id: trunk@17931 -
2011-07-04 08:59:06 +00:00
pierre
bded762fef
Add missing x86_64 -A options
...
git-svn-id: trunk@17930 -
2011-07-04 08:58:46 +00:00
pierre
d1a6ef9cd9
* Restrict use of postw32 external utility to
...
win32/wdosx target systems.
git-svn-id: trunk@17929 -
2011-07-04 07:36:47 +00:00
pierre
1a468eebc7
* Fix insdatx86 rule for Windows Makefiles
...
Also include regeneration of register include files.
git-svn-id: trunk@17928 -
2011-07-04 07:35:24 +00:00
pierre
cdd4b0297a
* Show usage and halt with error if unknown parameters are given
...
at command line.
* Also generate NASM register files for x86_64 (for support of NASM
assembler for x86_64 CPU, to be committed later).
git-svn-id: trunk@17927 -
2011-07-04 07:33:00 +00:00
joost
4c7af0b52f
* Removed hash dependency from fpmakefile, which was not in Makefile.fpc
...
git-svn-id: trunk@17926 -
2011-07-03 21:27:00 +00:00
joost
16e07fd1f8
* fpmakefile updates
...
git-svn-id: trunk@17925 -
2011-07-03 21:16:31 +00:00
joost
6d89da0654
* Moved daemon.txt to fcl-extra, where daemon.pp is moved to
...
git-svn-id: trunk@17924 -
2011-07-03 20:59:14 +00:00
marco
3d9c83715c
* gtk2 gboolean changed to boolean32. Change is relative small due to new
...
type, and put undef ifdef use define noboolean32 to undo.
Requires only one lazarus change that is backwards compat.
Fixes Mantis #17400
git-svn-id: trunk@17923 -
2011-07-03 20:35:42 +00:00
joost
f91c3e719c
* Added resource-files
...
git-svn-id: trunk@17922 -
2011-07-03 20:32:24 +00:00
joost
359b1c0a59
* Generate fpunits.conf on compilation, not installation. So that dependencies
...
on compiled but not yet installed packages are handled properly.
* Moved all logic to determine unit-directory to the GetUnitDirectory method
git-svn-id: trunk@17921 -
2011-07-03 20:27:03 +00:00
marco
391aef9927
* clocale fixed for Solaris, Patch by Ludo Brands, mantis #19675
...
git-svn-id: trunk@17919 -
2011-07-03 18:05:40 +00:00
michael
f2b5294dfb
* Re-enabled per-dir config when getting remote host.
...
(fields are now correctly aligned in apache header structs)
git-svn-id: trunk@17918 -
2011-07-03 09:35:57 +00:00
michael
f2654e1043
* Corrected alignment for some fields (missing bitfields)
...
git-svn-id: trunk@17917 -
2011-07-03 09:34:59 +00:00
michael
c1f8e258ad
* Handle ESysEINTR more carefully under linux. Do not raise exception in case of termination
...
git-svn-id: trunk@17916 -
2011-07-03 08:45:55 +00:00
Legolas
fb1e29aef5
* nds: implemented write(ln) output on the screen (it needs flush tough...)
...
git-svn-id: trunk@17915 -
2011-07-03 08:34:52 +00:00
michael
e357dc3fb9
* LongdateFormat equals shortdateformat (no longdateformat is available in langinfo) Bug #19616 .
...
git-svn-id: trunk@17914 -
2011-07-02 13:42:44 +00:00
michael
543b6bec44
* Proper fix for ID field not always being named properly in ExtJS delete operation.
...
git-svn-id: trunk@17913 -
2011-07-02 13:03:51 +00:00
michael
8dfac9c481
* Proper fix for ExtJS Delete operation which sometimes sends only an ID
...
git-svn-id: trunk@17912 -
2011-07-02 13:00:50 +00:00
pierre
b85355636e
* Avoid unitialized VM variable in Preferences method
...
git-svn-id: trunk@17911 -
2011-07-02 07:03:00 +00:00
marco
c8218eaab8
* constants for sockets unit of Solaris by L. Brands, mantis #19665
...
git-svn-id: trunk@17910 -
2011-07-01 20:50:49 +00:00
pierre
cfdc7c861d
* Use public/global name 'name' section 'section' without semicolon for Windows TLS support
...
git-svn-id: trunk@17909 -
2011-07-01 19:29:38 +00:00
pierre
372b16b2e6
* Look for __FPC_tls_callbacks, should be reset to nil for DLLs, not yet done
...
git-svn-id: trunk@17908 -
2011-07-01 19:28:32 +00:00
pierre
450fd8784b
* section specification method changed
...
git-svn-id: trunk@17907 -
2011-07-01 19:22:12 +00:00
pierre
4ad2707674
Windows TLS callback code testable by using -dTEST_TLS_DIRECTORY
...
git-svn-id: trunk@17906 -
2011-07-01 14:42:39 +00:00
pierre
92c92e1945
* Add oso_keep option to threadvar section if FPC_USE_TLS_DIRECTORY is set
...
git-svn-id: trunk@17905 -
2011-07-01 14:40:02 +00:00
pierre
eb90591ea9
TLS directory requires some labels in specific sections
...
I implemented this by allowing '.section sec_name mangled_name'
for name 'xxxx'; specifier in tstaticvarsym.set_mangledname
git-svn-id: trunk@17904 -
2011-07-01 14:36:44 +00:00
pierre
30feeff3c2
+ TlsDirectory handling code
...
git-svn-id: trunk@17903 -
2011-07-01 14:30:32 +00:00
pierre
bcb2bb9e5b
Add removal of braces for parameters in linker script
...
git-svn-id: trunk@17902 -
2011-07-01 14:28:18 +00:00
pierre
c611c91cef
Provide _tls_index in script
...
git-svn-id: trunk@17901 -
2011-07-01 14:27:33 +00:00
pierre
a45b29911c
* Handle vo_has_section for constants
...
git-svn-id: trunk@17900 -
2011-07-01 14:26:21 +00:00