It seems improper that dl-tls.c:oom uses __libc_write and __kill and __getpid. Why not just use _dl_fatal_printf? At the very least, use raise instead of kill.