+ initial (only a stub for now) implementation of pascal-based startup code units for OpenBSD

git-svn-id: trunk@41692 -
This commit is contained in:
nickysn 2019-03-13 15:59:36 +00:00
parent 9d44a2590a
commit df21e3a3bc
11 changed files with 216 additions and 0 deletions

10
.gitattributes vendored
View File

@ -10249,6 +10249,9 @@ rtl/openbsd/i386/bsyscall.inc svneol=native#text/plain
rtl/openbsd/i386/cprt0.as svneol=native#text/plain
rtl/openbsd/i386/dllprt0.as svneol=native#text/plain
rtl/openbsd/i386/prt0.as svneol=native#text/plain
rtl/openbsd/i386/si_c.inc svneol=native#text/plain
rtl/openbsd/i386/si_dll.inc svneol=native#text/plain
rtl/openbsd/i386/si_prc.inc svneol=native#text/plain
rtl/openbsd/i386/sighnd.inc svneol=native#text/plain
rtl/openbsd/osdefs.inc svneol=native#text/plain
rtl/openbsd/pmutext.inc svneol=native#text/plain
@ -10256,6 +10259,10 @@ rtl/openbsd/pthread.inc svneol=native#text/plain
rtl/openbsd/ptypes.inc svneol=native#text/plain
rtl/openbsd/rtldefs.inc svneol=native#text/plain
rtl/openbsd/setsysnr.inc svneol=native#text/plain
rtl/openbsd/si_c.pp svneol=native#text/plain
rtl/openbsd/si_dll.pp svneol=native#text/plain
rtl/openbsd/si_intf.inc svneol=native#text/plain
rtl/openbsd/si_prc.pp svneol=native#text/plain
rtl/openbsd/signal.inc svneol=native#text/plain
rtl/openbsd/syscalls.inc svneol=native#text/plain
rtl/openbsd/sysconst.inc svneol=native#text/plain
@ -10276,6 +10283,9 @@ rtl/openbsd/x86_64/crt0.s svneol=native#text/plain
rtl/openbsd/x86_64/dllprt0.as svneol=native#text/plain
rtl/openbsd/x86_64/gprt0.as svneol=native#text/plain
rtl/openbsd/x86_64/prt0.as svneol=native#text/plain
rtl/openbsd/x86_64/si_c.inc svneol=native#text/plain
rtl/openbsd/x86_64/si_dll.inc svneol=native#text/plain
rtl/openbsd/x86_64/si_prc.inc svneol=native#text/plain
rtl/openbsd/x86_64/sighnd.inc svneol=native#text/plain
rtl/os2/Makefile svneol=native#text/plain
rtl/os2/Makefile.fpc svneol=native#text/plain

17
rtl/openbsd/i386/si_c.inc Normal file
View File

@ -0,0 +1,17 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements parts of the startup code for OpenBSD
programs that link to the C library.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}

View File

@ -0,0 +1,17 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements parts of the startup code for OpenBSD
shared object (.so) libraries.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}

View File

@ -0,0 +1,17 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements parts of the startup code for OpenBSD
programs that don't link to the C library.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}

27
rtl/openbsd/si_c.pp Normal file
View File

@ -0,0 +1,27 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements the startup code for OpenBSD programs that
link to the C library.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
unit si_c;
interface
{$i si_intf.inc}
implementation
{$i si_c.inc}
end.

27
rtl/openbsd/si_dll.pp Normal file
View File

@ -0,0 +1,27 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements the startup code for OpenBSD shared object
(.so) libraries.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
unit si_dll;
interface
{$i si_intf.inc}
implementation
{$i si_dll.inc}
end.

22
rtl/openbsd/si_intf.inc Normal file
View File

@ -0,0 +1,22 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements the public interface parts of the startup
code for OpenBSD programs or shared object (.so) libraries.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$SMARTLINK OFF}
var
operatingsystem_parameter_envp: ppchar; public name 'operatingsystem_parameter_envp';
operatingsystem_parameter_argc: longint; public name 'operatingsystem_parameter_argc';
operatingsystem_parameter_argv: ppchar; public name 'operatingsystem_parameter_argv';

28
rtl/openbsd/si_prc.pp Normal file
View File

@ -0,0 +1,28 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements the startup code for OpenBSD programs that
don't link to the C library.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
unit si_prc;
interface
{$i si_intf.inc}
implementation
{$i si_prc.inc}
end.

View File

@ -0,0 +1,17 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements parts of the startup code for OpenBSD
programs that link to the C library.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}

View File

@ -0,0 +1,17 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements parts of the startup code for OpenBSD
shared object (.so) libraries.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}

View File

@ -0,0 +1,17 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2019 by Free Pascal development team
This file implements parts of the startup code for OpenBSD
programs that don't link to the C library.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}