summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17/ld/ldmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils-2.17/ld/ldmain.c')
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/ldmain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/ldmain.c b/gnu/usr.bin/binutils-2.17/ld/ldmain.c
index e927bc97f16..fc82e3e401b 100644
--- a/gnu/usr.bin/binutils-2.17/ld/ldmain.c
+++ b/gnu/usr.bin/binutils-2.17/ld/ldmain.c
@@ -299,7 +299,11 @@ main (int argc, char **argv)
link_info.new_dtags = FALSE;
link_info.combreloc = TRUE;
link_info.eh_frame_hdr = FALSE;
+#if defined(__mips64__) || defined(__m88k__)
link_info.relro = FALSE;
+#else
+ link_info.relro = TRUE;
+#endif
link_info.strip_discarded = TRUE;
link_info.strip = strip_none;
link_info.discard = discard_sec_merge;