Emit a warning when -z relro is unsupported
[deliverable/binutils-gdb.git] / ld / emultempl / aarch64elf.em
index d0519b3d7b24542aa7500c1bc706415e48bd4f40..a036da970e7e9bace0c3a3286ab3a39b45bff1ec 100644 (file)
@@ -47,7 +47,13 @@ gld${EMULATION_NAME}_before_parse (void)
   config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
   config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
   link_info.check_relocs_after_open_input = TRUE;
+EOF
+if test -n "$COMMONPAGESIZE"; then
+fragment <<EOF
   link_info.relro = DEFAULT_LD_Z_RELRO;
+EOF
+fi
+fragment <<EOF
 }
 
 static void
This page took 0.023978 seconds and 4 git commands to generate.