Index: contrib/binutils/ld/ldmain.c =================================================================== --- contrib/binutils/ld/ldmain.c (revision 310044) +++ contrib/binutils/ld/ldmain.c (working copy) @@ -264,6 +264,9 @@ link_info.allow_undefined_version = TRUE; link_info.keep_memory = TRUE; link_info.combreloc = TRUE; +#if defined(__i386__) || defined(__amd64_) + link_info.relro = TRUE; +#endif link_info.strip_discarded = TRUE; link_info.emit_hash = TRUE; link_info.callbacks = &link_callbacks;