1. Use arch_prctl to replace RDFSBASE/WRFSBASE Ptrace can't get right value if WRFSBASE is called which will make debugger fail in simulation mode. Use arch_prctl to replace these instructions in simulation mode. 2. Disable the busy thread in exit_group test exit_group doesn't have a real implementation yet but test under SGX simulation mode give core dump for exit_group test. Disable the busy loop thread and the core dump disappear. 3. Add SDK lib path to LD_LIBRARY_PATH Linker sometims can't find urts_sim and uae_service_sim when running. Explicitly add path to LD_LIBRARY_PATH when running occlum command. Signed-off-by: sanqian.hcy <sanqian.hcy@antfin.com> |
||
---|---|---|
.. | ||
main.c | ||
Makefile |