Commit Graph

123 Commits

Author SHA1 Message Date
Jonas Maebe
1f61b5b30c * reverted the rtl patches from r14184, because they cause an endless
loop when attempting to terminate a process via the RTL compiled into
    a Linux shared library  (mantis #17383)
  * call FPC_LIB_EXIT (the internal/generic RTL finalisation routine) instead
    of FPC_SHARED_LIB_EXIT (the Linux-specific "process exit" code for shared
    libraries) as "fini" routine (fixes #14958 again after reverting r14184)

git-svn-id: trunk@16418 -
2010-11-24 15:33:29 +00:00
daniel
3307d98c40 - Revert micro-exe mode for now.
git-svn-id: trunk@16170 -
2010-10-15 16:49:48 +00:00
daniel
2139a229d3 + If no unit is used, no symbol inside the system unit is used,
and no language features requiring initialization are used,
    do not initialize units, but just configure the fpu and
    signal handlers.

git-svn-id: trunk@16124 -
2010-10-10 17:40:39 +00:00
Jonas Maebe
84cc38f4af * moved {$asmmode att} to top of file (mantis #17377)
git-svn-id: trunk@15961 -
2010-09-09 19:46:59 +00:00
florian
7dc4b6ecc1 + adds mcount calls to syscall assembler helpers for i386 and x86-64, resolves #17140
git-svn-id: trunk@15812 -
2010-08-15 09:11:06 +00:00
micha
87ef559542 * rtl: fix i386-linux uclibc atexit functionality (call exit instead of _exit)
git-svn-id: trunk@15110 -
2010-04-03 13:18:10 +00:00
Jonas Maebe
38c09952a3 * don't exit the program in the exit code of shared libraries under Linux
(mantis #14958)

git-svn-id: trunk@14184 -
2009-11-15 13:50:14 +00:00
Jonas Maebe
92ff07deaf * several fixes by Pierre Pede (parts of his patch to mantis #12492)
o fixed gprof under linux/i386
    o fixed pic-compilation of the linux/i386 rtl
    o initialisation of linux shared libraries is now possible with pic-code

git-svn-id: trunk@13703 -
2009-09-12 21:57:41 +00:00
Jonas Maebe
f6d452c2c0 * remove the RTL's installed signal handlers at the end of the system
unit's initialization code in case we're in a library
  + implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and
    UnhookSignal() in the sysutils unit
  * for Kylix compatibility, these routines support operating on
    SIGINT and SIGQUIT as well, although they are not hooked by default
    by FPC. The run time errors/exception codes for these signals are
    resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport
    to 234).
  * changed the BSD syscall version of fpsigaction to use pointer
    rather than "var" arguments (compatible with other targets, and
    required to be able to pass nil arguments inside the system unit)
  -> together fixes mantis #12704

git-svn-id: trunk@13077 -
2009-05-02 09:40:44 +00:00
Jonas Maebe
d20080c3d6 * fixed order of parameter pushing to gmon_monstartup
git-svn-id: trunk@12778 -
2009-02-23 18:03:49 +00:00
Jonas Maebe
3216e8c7bc * mark produced object files as "does not require executable stack" by
default for Linux (overridable using -WX switch) (mantis #11563)

git-svn-id: trunk@12356 -
2008-12-12 16:26:25 +00:00
micha
04d8ad3f17 * fix linux syscall numbers naming consistency #2 (overlooked some)
git-svn-id: trunk@12154 -
2008-11-17 21:48:02 +00:00
Jonas Maebe
7901625134 * call finalization routine of dynamic linker before exiting (forgot to
commit earlier)

git-svn-id: trunk@10663 -
2008-04-14 12:00:48 +00:00
Jonas Maebe
3eec0569be * fixed shared library initialisation for FPC-compiled libraries
when linked to FPC-compiled programs under linux/i386 which
    do not use libc + test (mantis #8730). Programs which do use
    libc and other linux targets have to be fixed in a similar
    way until we properly fix everything by not exporting
    any symbols at all from shared libraries by default (and
    only those appearing in the "exports" section).

    Finalisation does not work yet either for FPC-compiled
    programs on linux/anything.

git-svn-id: trunk@10495 -
2008-03-15 23:28:09 +00:00
micha
7d5d4ba706 + add i386-linux uclibc process startup code
git-svn-id: trunk@8694 -
2007-09-30 14:53:54 +00:00
Almindor
a42b134a81 * fix sysenter variable duplication
git-svn-id: trunk@8406 -
2007-09-08 14:21:35 +00:00
Almindor
6fd901181a * update sysnr.inc for x86 and x86_64 to latest kernel
* add splice syscall to linux unit for x86 and x86_64

git-svn-id: trunk@8364 -
2007-09-02 22:06:04 +00:00
micha
68dbca040e * fix floating point signal and exception handling, for linux/i386, test tfpu2 regression
git-svn-id: trunk@8152 -
2007-07-23 15:36:02 +00:00
micha
0e64718cb2 * call HandleErrorAddrFrame on return of signal handler, reduces amount of code called within signal handler (for linux/i386)
git-svn-id: trunk@8092 -
2007-07-18 20:11:07 +00:00
Almindor
389ea20704 * fix FPC_USES_LIBC cycling, by fixing libc stat records (both 32 and 64 bit)
git-svn-id: trunk@8018 -
2007-07-11 20:55:09 +00:00
Jonas Maebe
f32621610f * fixed sse detection
git-svn-id: trunk@7554 -
2007-06-02 19:58:18 +00:00
florian
80d55022e9 * tried to fix SSE OS support detection
git-svn-id: trunk@7553 -
2007-06-02 19:26:06 +00:00
marco
eaaefc0f64 * deprecated here and there even though compiler doesn't seem to show
git-svn-id: trunk@7481 -
2007-05-26 13:56:21 +00:00
mazen
0f73d54ac8 + Added ATT assmebler mode directive to override any default in fpc.cfg. Otherwise we need to override it in makefile.
git-svn-id: trunk@7258 -
2007-05-04 10:59:30 +00:00
florian
2894267806 * fixed profiler startup code to link again, resolves #8551
git-svn-id: trunk@7053 -
2007-04-01 16:20:01 +00:00
Almindor
c626740043 * adds support for sysenter syscall style for i386 on 2.6 kernels
git-svn-id: trunk@6992 -
2007-03-25 10:06:23 +00:00
daniel
d030103742 + Restore "stat" data structure in backward compatible state
git-svn-id: trunk@6963 -
2007-03-23 22:23:24 +00:00
ivost
e7fb4e6a32 * changed i386 syscall from oldfpccall to register calling convention
git-svn-id: trunk@6776 -
2007-03-10 18:09:13 +00:00
ivost
240938a6ed * fixed syscall6 (still experimental, but so far it worked here!)
git-svn-id: trunk@6705 -
2007-03-03 21:38:20 +00:00
peter
d1d7c59244 * fixed compile after exitcode size change
git-svn-id: trunk@6559 -
2007-02-19 16:11:01 +00:00
marco
57cfd89fbd * Linux 64-bit FS patch from neli for FPC_USE_LIBC
git-svn-id: trunk@6517 -
2007-02-16 22:16:54 +00:00
florian
31c9a91af0 + edsp detection for arm-linux
git-svn-id: trunk@6429 -
2007-02-11 16:21:04 +00:00
florian
bcf65051e3 * detect sse properly on linux, fixes tmask*.pp in the testsuite with -Cfsse2
git-svn-id: trunk@6277 -
2007-01-31 21:51:47 +00:00
florian
74c9eefc99 * fixed bootstrapping with 2.0.4
git-svn-id: trunk@5837 -
2007-01-07 10:19:10 +00:00
florian
c59c9cdfae * don't build .as with 2.1.1 on i386
* first fix to library entry code

git-svn-id: trunk@5836 -
2007-01-07 10:04:19 +00:00
florian
b07cd83892 * made system unit on m68k-linux compilable
git-svn-id: trunk@5266 -
2006-11-06 18:42:47 +00:00
micha
6bfff9702e + add linux/i386 start units
git-svn-id: trunk@5183 -
2006-11-02 17:49:36 +00:00
micha
e754f21053 * remove old linux stat record, C lib i386
git-svn-id: trunk@5180 -
2006-11-02 15:29:04 +00:00
micha
b14c83a7e1 * stat records differ too much: use stat include file
git-svn-id: trunk@5126 -
2006-10-31 15:45:22 +00:00
florian
0663a997cc * name mangling changed
git-svn-id: trunk@4548 -
2006-09-03 21:11:10 +00:00
peter
2d97d480ed * stkptr is global
git-svn-id: trunk@2675 -
2006-02-24 11:13:46 +00:00
marco
05bb11b2ba * syscalls regenerated by Neli.
git-svn-id: trunk@2552 -
2006-02-12 21:45:34 +00:00
marco
c2d5016d77 * linux unit moved and renamed.
git-svn-id: trunk@2543 -
2006-02-12 19:06:39 +00:00
peter
49cf8154c1 * add missing .globl
git-svn-id: trunk@2267 -
2006-01-12 11:04:03 +00:00
peter
94f2b1d941 * add initialstkptr to get the stackpointer at startup before
PASCALMAIN is called so the main body framepointer is seen as
    a valid pointer with backtracing

git-svn-id: trunk@2266 -
2006-01-12 09:29:57 +00:00
florian
ce73006fc3 * picfied code
git-svn-id: trunk@2127 -
2006-01-02 18:35:17 +00:00
florian
48c8401104 * proper setting of symbol sizes and types
git-svn-id: trunk@2126 -
2006-01-02 18:35:01 +00:00
peter
63091ddafc * blksze to blksize
git-svn-id: trunk@2050 -
2005-12-25 11:08:23 +00:00
peter
75c00e21c9 * i386 signal handler receives a ucontext instead of sigcontext
git-svn-id: trunk@1478 -
2005-10-18 13:41:48 +00:00
peter
7f6d44006e * disable TLS segment initialization, it breaks threading
git-svn-id: trunk@1470 -
2005-10-18 11:20:36 +00:00