summaryrefslogtreecommitdiff
path: root/test/dot_s/export_malloc_free.s
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-01-24 13:44:04 -0800
committerGitHub <noreply@github.com>2017-01-24 13:44:04 -0800
commit21eb2c7cba6af6e01219f1f3b06e82dfcf2788e8 (patch)
treef16ad91e1b429ab32fc3882e9b730b770d7dfb83 /test/dot_s/export_malloc_free.s
parent009f172a595d5554e7e85f6acacef34e9d4e8010 (diff)
downloadbinaryen-21eb2c7cba6af6e01219f1f3b06e82dfcf2788e8.tar.gz
binaryen-21eb2c7cba6af6e01219f1f3b06e82dfcf2788e8.tar.bz2
binaryen-21eb2c7cba6af6e01219f1f3b06e82dfcf2788e8.zip
Export memalign along with malloc and friends (#888)
Emscripten's mmap2 syscall started using memalign instead of malloc with kripken/emscripten#4874, so we need to export that as well.
Diffstat (limited to 'test/dot_s/export_malloc_free.s')
-rw-r--r--test/dot_s/export_malloc_free.s20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/dot_s/export_malloc_free.s b/test/dot_s/export_malloc_free.s
index 2ace10db9..084ab0383 100644
--- a/test/dot_s/export_malloc_free.s
+++ b/test/dot_s/export_malloc_free.s
@@ -36,4 +36,22 @@ realloc:
i32.const $push0=, 0
.endfunc
.Lfunc_end22:
- .size realloc, .Lfunc_end22-free
+ .size realloc, .Lfunc_end22-realloc
+
+ .type memalign,@function
+memalign:
+ .param i32, i32
+ .result i32
+ i32.const $push0=, 0
+ .endfunc
+.Lfunc_end2:
+ .size memalign, .Lfunc_end2-memalign
+
+ .type not_a_malloc,@function
+not_a_malloc:
+ .param i32, i32
+ .result i32
+ i32.const $push0=, 0
+ .endfunc
+.Lfunc_end2:
+ .size not_a_malloc, .Lfunc_end2-not_a_malloc