2012-11-09 Nick Clifton <nickc@redhat.com>
[binutils-gdb.git] / gas / config / obj-elf.c
index d7c766513ccc4111f51904a7e01904b7ebe96a03..d0fbcfb43ab6514a39350c5a8c78f556ef0888da 100644 (file)
@@ -657,6 +657,14 @@ obj_elf_change_section (const char *name,
          /* A section on Alpha may have SHF_ALPHA_GPREL.  */
          else if ((attr & ~ssect->attr) == SHF_ALPHA_GPREL)
            override = TRUE;
+#endif
+#ifdef TC_RX
+         else if (attr == (SHF_EXECINSTR | SHF_WRITE | SHF_ALLOC)
+                  && (ssect->type == SHT_INIT_ARRAY
+                      || ssect->type == SHT_FINI_ARRAY
+                      || ssect->type == SHT_PREINIT_ARRAY))
+           /* RX init/fini arrays can and should have the "awx" attributes set.  */
+           ;
 #endif
          else
            {