summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--project/arch.mk1
-rw-r--r--src/errno/nt32/___errno_location.s8
-rw-r--r--src/errno/nt64/___errno_location.s8
3 files changed, 17 insertions, 0 deletions
diff --git a/project/arch.mk b/project/arch.mk
index c39b137..6eb9f20 100644
--- a/project/arch.mk
+++ b/project/arch.mk
@@ -18,5 +18,6 @@ LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_getc
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_getc_unlocked
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc_unlocked
+LDFLAGS_CONFIG += -Wl,--exclude-symbols=___errno_location
endif
diff --git a/src/errno/nt32/___errno_location.s b/src/errno/nt32/___errno_location.s
new file mode 100644
index 0000000..9432d1c
--- /dev/null
+++ b/src/errno/nt32/___errno_location.s
@@ -0,0 +1,8 @@
+.text
+
+.global ____errno_location
+
+.def ____errno_location; .scl 2; .type 32; .endef
+
+____errno_location:
+ jmp ___errno_location
diff --git a/src/errno/nt64/___errno_location.s b/src/errno/nt64/___errno_location.s
new file mode 100644
index 0000000..39da447
--- /dev/null
+++ b/src/errno/nt64/___errno_location.s
@@ -0,0 +1,8 @@
+.text
+
+.global ___errno_location
+
+.def ___errno_location; .scl 2; .type 32; .endef
+
+___errno_location:
+ jmp __errno_location