]> git.proxmox.com Git - wasi-libc.git/blobdiff - debian/patches/debian-flags.patch
Include __stack_chk_fail and __stack_chk_guard
[wasi-libc.git] / debian / patches / debian-flags.patch
index 27ba41e95ba11f65d76d991f7c6593083a0c734b..3334275fcf2b45c28ab45bd634234413266e5d05 100644 (file)
  #define atan(x) __tg_real_complex(atan, (x))
  #define atan2(x,y) __tg_real_2(atan2, (x), (y))
  #define atanh(x) __tg_real_complex(atanh, (x))
---- a/expected/wasm32-wasi/undefined-symbols.txt
-+++ b/expected/wasm32-wasi/undefined-symbols.txt
-@@ -13,6 +13,8 @@
- __letf2
- __lttf2
- __netf2
-+__stack_chk_fail
-+__stack_chk_guard
- __stack_pointer
- __subtf3
- __trunctfdf2
+--- a/Makefile
++++ b/Makefile
+@@ -125,6 +125,7 @@
+     $(LIBC_TOP_HALF_MUSL_SRC_DIR)/env/putenv.c \
+     $(LIBC_TOP_HALF_MUSL_SRC_DIR)/env/setenv.c \
+     $(LIBC_TOP_HALF_MUSL_SRC_DIR)/env/unsetenv.c \
++    $(LIBC_TOP_HALF_MUSL_SRC_DIR)/env/__stack_chk_fail.c \
+     $(LIBC_TOP_HALF_MUSL_SRC_DIR)/unistd/posix_close.c \
+     $(filter-out %/procfdname.c %/syscall.c %/syscall_ret.c %/vdso.c %/version.c, \
+                  $(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/internal/*.c)) \