Select the types of activity you want to include in your feed.
Getting closer to Hello world running
The current problem is two open descriptors for /dev/mach,
which results in malfunctions in pthread initialization,
which results in a crash when it tries to print out the error while libc is not inited yet
···99add_subdirectory(emulation/linux)
10101111set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3 -w -fblocks -ggdb")
1212-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -w -nostdinc -Wl,-undefined,suppress -Wl,-flat_namespace")
1212+1313+# Why -bind_at_load is necessary:
1414+# I couldn't find something like -Bsymbolic in Apple's ld
1515+# -> internal functions are being resolved by dyld
1616+# -> dyld places stubs -> stubs go into dyld_stub_binder at first use
1717+# -> there is a temporary loss of 16-byte stack alignment in __darling_bsd_syscall
1818+# -> dyld_stub_binder checks for this and bails out with a SIGSEGV
1919+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -w -nostdinc -Wl,-bind_at_load -Wl,-undefined,suppress -Wl,-flat_namespace")
1320set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
14211522include_directories(${DARLING_TOP_DIRECTORY}/kernel-include)