From dd061506b1fd6a6d57f0967896d65ad3a817f69e Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Oct 2017 09:52:25 -0400 Subject: toolchain build-time options: added __crtopt_ldso and __crtopt_vrfs. --- crt/crtldso.c | 0 crt/crtvrfs.c | 0 crt/nt32/crt1.c | 2 ++ crt/nt32/crtldso.c | 3 +++ crt/nt32/crtvrfs.c | 3 +++ crt/nt64/crt1.c | 2 ++ crt/nt64/crtldso.c | 3 +++ crt/nt64/crtvrfs.c | 3 +++ 8 files changed, 16 insertions(+) create mode 100644 crt/crtldso.c create mode 100644 crt/crtvrfs.c create mode 100644 crt/nt32/crtldso.c create mode 100644 crt/nt32/crtvrfs.c create mode 100644 crt/nt64/crtldso.c create mode 100644 crt/nt64/crtvrfs.c (limited to 'crt') diff --git a/crt/crtldso.c b/crt/crtldso.c new file mode 100644 index 0000000..e69de29 diff --git a/crt/crtvrfs.c b/crt/crtvrfs.c new file mode 100644 index 0000000..e69de29 diff --git a/crt/nt32/crt1.c b/crt/nt32/crt1.c index 6605bcb..13f3c9a 100644 --- a/crt/nt32/crt1.c +++ b/crt/nt32/crt1.c @@ -14,6 +14,8 @@ static const int __disabled = 0; extern const int __crtopt_posix __attribute((weak,alias("__disabled"))); extern const int __crtopt_debug __attribute((weak,alias("__disabled"))); +extern const int __crtopt_ldso __attribute((weak,alias("__disabled"))); +extern const int __crtopt_vrfs __attribute((weak,alias("__disabled"))); int main(); diff --git a/crt/nt32/crtldso.c b/crt/nt32/crtldso.c new file mode 100644 index 0000000..c3130b8 --- /dev/null +++ b/crt/nt32/crtldso.c @@ -0,0 +1,3 @@ +#include "psxglue.h" + +const int __crtopt_ldso = __PSXOPT_LDSO; diff --git a/crt/nt32/crtvrfs.c b/crt/nt32/crtvrfs.c new file mode 100644 index 0000000..d22d444 --- /dev/null +++ b/crt/nt32/crtvrfs.c @@ -0,0 +1,3 @@ +#include "psxglue.h" + +const int __crtopt_vrfs = __PSXOPT_VRFS; diff --git a/crt/nt64/crt1.c b/crt/nt64/crt1.c index 8c1f838..539ddd2 100644 --- a/crt/nt64/crt1.c +++ b/crt/nt64/crt1.c @@ -14,6 +14,8 @@ static const int __disabled = 0; extern const int __crtopt_posix __attribute((weak,alias("__disabled"))); extern const int __crtopt_debug __attribute((weak,alias("__disabled"))); +extern const int __crtopt_ldso __attribute((weak,alias("__disabled"))); +extern const int __crtopt_vrfs __attribute((weak,alias("__disabled"))); int main(); diff --git a/crt/nt64/crtldso.c b/crt/nt64/crtldso.c new file mode 100644 index 0000000..c3130b8 --- /dev/null +++ b/crt/nt64/crtldso.c @@ -0,0 +1,3 @@ +#include "psxglue.h" + +const int __crtopt_ldso = __PSXOPT_LDSO; diff --git a/crt/nt64/crtvrfs.c b/crt/nt64/crtvrfs.c new file mode 100644 index 0000000..d22d444 --- /dev/null +++ b/crt/nt64/crtvrfs.c @@ -0,0 +1,3 @@ +#include "psxglue.h" + +const int __crtopt_vrfs = __PSXOPT_VRFS; -- cgit v1.2.3