Can you also add the corresponding --warn-shared-textrel option? It would also be nice to indicate which section at what offset by which relocation created the text relocation. The lack of any hint towards what triggered the text relocation is one of the most annoying "features" of GNU ld. http://reviews.llvm.org/D3716