[trusty][libc] C runtime and malloc
crt(C runtime):
Using crtbegin and crtend from bionic. Adds init and
finalize funtions to libc.
malloc:
Using dlmalloc. We configure it appropriately from an
external file, malloc.c, in order to keep current with
up-stream dlmalloc easily.
stdio:
Add a basic stdio that backs in write() for character output.
Also moves the existing syscall defs to the new location for the new
build system.
Change-Id: I75ffa409966730fefb7d5a1f9615ce2337a81c91
Signed-off-by: Satya Popuri <popuri@google.com>
[dima: moved syscalls, added stdio.c, malloc.c, rules.mk and made things build]
Signed-off-by: Dima Zavin <dima@android.com>
15 files changed