From e20baa01295aa21711ce13196fce8e9a70ce319f Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 10 2019 03:43:17 +0000 Subject: mmglue: libc internals: provide a strongly defined ___errno_location(). --- 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