Please CC me on replies. I recently discovered that musl doesn't support DT/DF_TEXTREL in the main executable, which can result in the dynamic loader crashing with SIGSEGV and SEGV_ACCERR while processing relocations. I spent a few days trying to fix this in the toolchain, but because it is a prototype based on Clang/LLVM 4.0.0 that adds runtime instrumentation built using the x64 large code model, so it's not easy to fix. Also, glibc does support this behavior. I ended up implementing support for this in musl itself (patch attached), but given the discussion in the previous thread, "Static linking is broken after creation of DT_TEXTREL," it seems like this isn't acceptable due to overhead? I don't quite understand the concern, because the loader needs to iterate again over the program headers only if the program contains TEXTRELs, which is strictly an improvement, even if the iteration itself is suboptimal. Alternatively, I'd suggest that musl at least warns about unsupported TEXTRELs if present, because asking application developers to debug a crashing ELF loader is quite a high bar. Thanks, Dominic