clarify the purpose of this project
[nyanglibc.git] / make / malloc.sh
blob5cf4710944c23d2f0c4a2613a9bb402ee2b3440c
1 printf "\
2 MALLOC**************************************************************************\n"
3 fns_pie_shared="\
4 malloc \
5 morecore \
6 mcheck \
7 mtrace \
8 obstack \
9 reallocarray \
10 scratch_buffer_dupfree \
11 scratch_buffer_grow \
12 scratch_buffer_grow_preserve \
13 scratch_buffer_set_array_size \
14 dynarray_at_failure \
15 dynarray_emplace_enlarge \
16 dynarray_finalize \
17 dynarray_resize \
18 dynarray_resize_clear \
19 alloc_buffer_alloc_array \
20 alloc_buffer_allocate \
21 alloc_buffer_copy_bytes \
22 alloc_buffer_copy_string \
23 alloc_buffer_create_failure \
24 set-freeres \
25 thread-freeres \
27 fns_pie="\
28 $fns_pie_shared \
31 fns_shared="\
32 $fns_pie_shared \
34 mkdir -p $build_dir/malloc
35 for fn in $fns_pie
37 printf "ASSEMBLING PIE $fn\n"
38 $as $src_dir/malloc/$fn.s -o $build_dir/malloc/$fn.o
39 done
40 for fn in $fns_shared
42 printf "ASSEMBLING SHARED $fn\n"
43 $as $src_dir/malloc/$fn.shared.s -o $build_dir/malloc/$fn.os
44 done
45 printf 'CREATING STAMPS FILES\n'
46 printf 'malloc/malloc.o malloc/morecore.o malloc/mcheck.o malloc/mtrace.o malloc/obstack.o malloc/reallocarray.o malloc/scratch_buffer_dupfree.o malloc/scratch_buffer_grow.o malloc/scratch_buffer_grow_preserve.o malloc/scratch_buffer_set_array_size.o malloc/dynarray_at_failure.o malloc/dynarray_emplace_enlarge.o malloc/dynarray_finalize.o malloc/dynarray_resize.o malloc/dynarray_resize_clear.o malloc/alloc_buffer_alloc_array.o malloc/alloc_buffer_allocate.o malloc/alloc_buffer_copy_bytes.o malloc/alloc_buffer_copy_string.o malloc/alloc_buffer_create_failure.o malloc/set-freeres.o malloc/thread-freeres.o\n' >$build_dir/malloc/stamp.o
47 printf 'malloc/malloc.os malloc/morecore.os malloc/mcheck.os malloc/mtrace.os malloc/obstack.os malloc/reallocarray.os malloc/scratch_buffer_dupfree.os malloc/scratch_buffer_grow.os malloc/scratch_buffer_grow_preserve.os malloc/scratch_buffer_set_array_size.os malloc/dynarray_at_failure.os malloc/dynarray_emplace_enlarge.os malloc/dynarray_finalize.os malloc/dynarray_resize.os malloc/dynarray_resize_clear.os malloc/alloc_buffer_alloc_array.os malloc/alloc_buffer_allocate.os malloc/alloc_buffer_copy_bytes.os malloc/alloc_buffer_copy_string.os malloc/alloc_buffer_create_failure.os malloc/set-freeres.os malloc/thread-freeres.os\n' >$build_dir/malloc/stamp.os
48 printf '' >$build_dir/malloc/stamp.oS