Commit Graph

340 Commits

Author SHA1 Message Date
Jonas Maebe
faf75095cd * synchronised with trunk till r42189
git-svn-id: branches/debug_eh@42190 -
2019-06-07 18:24:38 +00:00
nickysn
2fdef04a28 * invoke _csu_finish before __init in the OpenBSD i386 C library startup code
git-svn-id: trunk@42132 -
2019-05-28 15:39:43 +00:00
Jonas Maebe
9e9a982bfe * synchronised with trunk till r42095
git-svn-id: branches/debug_eh@42096 -
2019-05-18 18:43:51 +00:00
nickysn
e0b523ef14 * updated the asm parts of the i386 OpenBSD startup code as well
git-svn-id: trunk@42080 -
2019-05-15 17:16:21 +00:00
nickysn
806b65da6b * also update the startup asm code in prt0.as for OpenBSD x86_64
git-svn-id: trunk@42079 -
2019-05-15 16:24:41 +00:00
nickysn
357d3ca390 - removed cprt0.as from the OpenBSD i386 RTL as well
git-svn-id: trunk@42078 -
2019-05-15 16:13:57 +00:00
nickysn
ef86b3ab29 - delete cprt0.as from the OpenBSD x86_64 startup code, because it's not needed for bootstrapping
git-svn-id: trunk@42077 -
2019-05-15 15:37:51 +00:00
nickysn
058336db40 * invoke _csu_finish before __init the OpenBSD x86_64 C library startup code
git-svn-id: trunk@42076 -
2019-05-15 15:22:54 +00:00
nickysn
77f86d22a5 * updated the parameter list to _FPC_proc___start in the OpenBSD x86_64 startup code
git-svn-id: trunk@42075 -
2019-05-15 14:27:42 +00:00
nickysn
f2719e438c * updated the OpenBSD x86_64 assembly startup code
git-svn-id: trunk@42074 -
2019-05-15 13:52:28 +00:00
Jonas Maebe
1b6425176b * synchronised with trunk till r42049
git-svn-id: branches/debug_eh@42050 -
2019-05-12 18:44:05 +00:00
pierre
83d72bdf19 Use TIOCtlRequest type for local variable nr inside TCSetAttr function
git-svn-id: trunk@42024 -
2019-05-10 07:23:31 +00:00
pierre
1e4442f1fa Add more system header constants
git-svn-id: trunk@42010 -
2019-05-06 13:25:56 +00:00
Jonas Maebe
3a1fb45315 * synchronised with trunk till r41976
git-svn-id: branches/debug_eh@41977 -
2019-05-02 19:44:41 +00:00
pierre
6f7d2a798c Change ssize_t type to clong and specify pthread_once_t_rec record
git-svn-id: trunk@41966 -
2019-05-01 14:51:20 +00:00
pierre
5c7adf9af3 Add simple types and some constants
git-svn-id: trunk@41965 -
2019-05-01 14:49:14 +00:00
Jonas Maebe
128bf046b4 * regenerated Makefiles with LLVM bitcode installation support
git-svn-id: branches/debug_eh@41914 -
2019-04-20 18:56:45 +00:00
nickysn
e2a139ee19 * updated the openbsd tstatfs structure to be compatible with the currently
supported openbsd versions (6.3 and 6.4)

git-svn-id: trunk@41878 -
2019-04-15 17:11:13 +00:00
nickysn
924b4c6f10 + more structures added to the openbsd structure checker file: utimbuf, flock,
tms, timezone, rusage, TRLimit and iovec

git-svn-id: trunk@41877 -
2019-04-15 15:02:24 +00:00
nickysn
f6e13c50a9 + added pollfd to the openbsd structure checker file
git-svn-id: trunk@41875 -
2019-04-15 14:33:33 +00:00
nickysn
9b7cbb0e0b + added OpenBSD RTL structure checker description file for use with the h2paschk
tool. Currently only checks the stat and dirent structures, but more will be
  added in the future.

git-svn-id: trunk@41874 -
2019-04-15 14:22:44 +00:00
pierre
df2cefdc32 Fix OpenBSD rtl compilation when using -dFPC_USE_LIBC option
git-svn-id: trunk@41821 -
2019-04-03 06:59:26 +00:00
nickysn
28bb38cc12 - removed syscall_nr_getdirentries from the OpenBSD rtl, since this syscall is no longer
supported by OpenBSD and shouldn't be used at all

git-svn-id: trunk@41791 -
2019-03-24 16:51:05 +00:00
nickysn
aa3d13dd4a - removed the FPC_USE_GETDIRENTRIES_SYSCALL define and use_getdirentries_syscall
global variable, they are compatibility flags of a no longer supported OpenBSD version

git-svn-id: trunk@41790 -
2019-03-24 16:30:50 +00:00
nickysn
ede50a2c4f - get rid of the FPC_USE_GETDIRENTRIES_I49_SYSCALL define and the
use_openbsd_getdirentries_49 global variable - both are compatibility features
  for a no longer supported OpenBSD version

git-svn-id: trunk@41789 -
2019-03-24 16:12:30 +00:00
nickysn
9a18543324 * cleaned up most of the obsolete OpenBSD syscall numbers
git-svn-id: trunk@41783 -
2019-03-23 20:35:03 +00:00
nickysn
dab661cfc6 * switch syscall_nr_kill on OpenBSD to be using the 5.9+ syscall version
git-svn-id: trunk@41781 -
2019-03-23 04:23:15 +00:00
nickysn
41c753d7e7 * updated OpenBSD syscall numbers to version 6.4
git-svn-id: trunk@41780 -
2019-03-23 04:20:55 +00:00
nickysn
b32e54152a * updated OpenBSD syscall numbers to version 6.3
git-svn-id: trunk@41779 -
2019-03-23 04:19:07 +00:00
nickysn
89a40d5cf9 * updated OpenBSD syscall numbers for version 6.2
git-svn-id: trunk@41778 -
2019-03-23 04:17:35 +00:00
nickysn
14701521a1 * updated OpenBSD syscalls for version 6.1
git-svn-id: trunk@41777 -
2019-03-23 04:14:11 +00:00
nickysn
475ecdb2dc * updated OpenBSD syscall numbers to version 6.0
git-svn-id: trunk@41776 -
2019-03-23 04:12:51 +00:00
nickysn
72aec7c072 * updated OpenBSD syscall numbers to version 5.9
git-svn-id: trunk@41775 -
2019-03-23 04:06:14 +00:00
nickysn
259e3f9f63 * updated OpenBSD syscall numbers for OpenBSD 5.8
git-svn-id: trunk@41774 -
2019-03-23 03:55:47 +00:00
nickysn
828da99388 * updated syscall numbers for OpenBSD 5.7
git-svn-id: trunk@41773 -
2019-03-23 01:54:20 +00:00
nickysn
cee76bda5c + added comments about some retired syscall numbers, with the last supported
version. This is checked against OpenBSD versions 2.0 to 5.6, like the comment
  in the beginning of the file says (and the ones in this commit were missed).

git-svn-id: trunk@41772 -
2019-03-23 01:46:21 +00:00
nickysn
04ee584a7d - removed FPC 1.0.x bootstrapping compatibility ifdef from OpenBSD RTL Makefile
git-svn-id: trunk@41769 -
2019-03-22 17:35:35 +00:00
nickysn
6dec9ae064 + added some missing cdecl declarations to the OpenBSD startup code
git-svn-id: trunk@41766 -
2019-03-22 01:22:16 +00:00
nickysn
b6d2ef12ad - removed OpenBSD loaders that are not needed for bootstrapping with FPC 3.0.4
git-svn-id: trunk@41765 -
2019-03-22 01:08:37 +00:00
nickysn
516438fd19 * converted the i386 OpenBSD startup code to Pascal
git-svn-id: trunk@41764 -
2019-03-22 00:54:01 +00:00
nickysn
b4baba3454 * fixed the haltproc for shared libs
git-svn-id: trunk@41763 -
2019-03-21 23:37:47 +00:00
nickysn
01669ebf70 * use the actual _haltproc procedure, defined in the startup code on OpenBSD
* fixed the x86_64 syscall invocation in the OpenBSD _haltproc

git-svn-id: trunk@41762 -
2019-03-21 18:16:23 +00:00
nickysn
7638a9b7e1 - removed commented out gprof code from si_c.inc
git-svn-id: trunk@41761 -
2019-03-21 17:37:37 +00:00
nickysn
1f9b5d143e * call _monstartup instead of monstartup
git-svn-id: trunk@41758 -
2019-03-21 13:28:18 +00:00
nickysn
e4ffeb2266 + added OpenBSD startup units for gprof support
git-svn-id: trunk@41757 -
2019-03-21 12:52:25 +00:00
nickysn
bb911e2f01 - unused local variable removed
git-svn-id: trunk@41754 -
2019-03-20 16:26:38 +00:00
nickysn
f15c2db4b2 * moved some C type declarations to si_intf.inc
git-svn-id: trunk@41753 -
2019-03-20 16:23:34 +00:00
nickysn
fb3d287971 * fixed OpenBSD shared library initialization
git-svn-id: trunk@41752 -
2019-03-20 16:09:07 +00:00
nickysn
52a5669117 + enable weak externals for OpenBSD
* converted the reference to _init in si_dll to be a weak external. This way we
  can support creating shared libraries that link to the C library as well as
  libraries that do not. If libc was linked, the compiler will link in
  crtbeginS.o and crtendS.o; _init is defined in crtbeginS.o and initializes the
  C library and calls all the C static constructors.

git-svn-id: trunk@41751 -
2019-03-20 15:13:47 +00:00
nickysn
aad032f133 * converted _FPC_proc___start in OpenBSD's si_dll.inc to pascal
git-svn-id: trunk@41750 -
2019-03-20 14:55:35 +00:00