summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-09 04:06:56 -0500
committermidipix <writeonce@midipix.org>2019-01-09 22:43:17 -0500
commite20baa01295aa21711ce13196fce8e9a70ce319f (patch)
treeff0a38fcf51f46a3831610fab4febce4afaba840
parentddbccbc6b51002739c3b61ff23ec13a758bd7c30 (diff)
downloadmmglue-e20baa01295aa21711ce13196fce8e9a70ce319f.tar.bz2
mmglue-e20baa01295aa21711ce13196fce8e9a70ce319f.tar.xz
mmglue: libc internals: provide a strongly defined ___errno_location().
-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