Add regress tests for making syscalls from the main program text and froma shared library.ok deraadt