* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
authorAlan Modra <amodra@gmail.com>
Thu, 14 Jul 2011 12:43:35 +0000 (12:43 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 14 Jul 2011 12:43:35 +0000 (12:43 +0000)
gld${EMULATION_NAME}_list_options): Don't condition -z relro
and -z norelro on COMMONPAGESIZE being defined.

ld/ChangeLog
ld/emultempl/elf32.em

index 69510b160a43185cf6f5947e12b060d14fc515b9..7eda37922479558455a77db29e16a4598e8f2c2a 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-14  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
+       gld${EMULATION_NAME}_list_options): Don't condition -z relro
+       and -z norelro on COMMONPAGESIZE being defined.
+
 2011-07-14  Alan Modra  <amodra@gmail.com>
 
        * emultempl/ppc64elf.em (plt_static_chain): New var.
index 16cbaa4ac88d82482702edec889c8e8771588b69..9bc363f333170ae374fbb2d87a9e88c7bb6af38d 100644 (file)
@@ -2323,16 +2323,11 @@ fragment <<EOF
        link_info.combreloc = FALSE;
       else if (strcmp (optarg, "nocopyreloc") == 0)
        link_info.nocopyreloc = TRUE;
-EOF
-
-  if test -n "$COMMONPAGESIZE"; then
-fragment <<EOF
       else if (strcmp (optarg, "relro") == 0)
        link_info.relro = TRUE;
       else if (strcmp (optarg, "norelro") == 0)
        link_info.relro = FALSE;
 EOF
-  fi
 fi
 
 fragment <<EOF
@@ -2444,27 +2439,17 @@ fragment <<EOF
   -z noexecstack              Mark executable as not requiring executable stack\n"));
 EOF
 if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
-  if test -n "$COMMONPAGESIZE"; then
 fragment <<EOF
   fprintf (file, _("\
   -z norelro                  Don't create RELRO program header\n"));
-EOF
-  fi
-
-fragment <<EOF
   fprintf (file, _("\
   -z now                      Mark object non-lazy runtime binding\n"));
   fprintf (file, _("\
   -z origin                   Mark object requiring immediate \$ORIGIN\n\
                                 processing at runtime\n"));
-EOF
-
-  if test -n "$COMMONPAGESIZE"; then
-fragment <<EOF
   fprintf (file, _("\
   -z relro                    Create RELRO program header\n"));
 EOF
-  fi
 fi
 
 if test -n "$PARSE_AND_LIST_OPTIONS" ; then