On 10/01/2014 12:54 PM, Stephen Turner wrote:
I can compile the following program sucessfully to a.out but cannot run it.
# include <stdio.h>
main()
{
printf("hello world\n");
}
gcc test.c && chmod +x a.out && ./a.out
Also try compiling it statically and then running it.
gcc -v -static test.c
What compiler flags did you use when compiling musl? If static linking works, but dynamic doesn't, that points to a library issue, either with musl or libgcc.
--
Regards,
Samuel Holland <samuel@sholland.net>