File gcc34-pr26090.patch of Package gcc3
2006-02-03 Richard Henderson <rth@redhat.com>
PR target/26090
* config/ia64/sysv4.h (TARGET_ASM_SELECT_RTX_SECTION,
TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION,
TARGET_SECTION_TYPE_FLAGS): Copy from the hpux definition.
--- gcc/config/ia64/sysv4.h.jj 2005-11-21 08:40:57.000000000 -0500
+++ gcc/config/ia64/sysv4.h 2010-09-21 12:04:47.000000000 -0400
@@ -118,8 +118,16 @@ do { \
} while (0)
/* Override default elf definition. */
-#undef TARGET_ASM_SELECT_RTX_SECTION
-#define TARGET_ASM_SELECT_RTX_SECTION ia64_select_rtx_section
+/* ??? This is slight overkill. We should check for static relocations
+ and allow those in .rodata. */
+#undef TARGET_ASM_SELECT_SECTION
+#define TARGET_ASM_SELECT_SECTION ia64_rwreloc_select_section
+#undef TARGET_ASM_UNIQUE_SECTION
+#define TARGET_ASM_UNIQUE_SECTION ia64_rwreloc_unique_section
+#undef TARGET_ASM_SELECT_RTX_SECTION
+#define TARGET_ASM_SELECT_RTX_SECTION ia64_rwreloc_select_rtx_section
+#undef TARGET_SECTION_TYPE_FLAGS
+#define TARGET_SECTION_TYPE_FLAGS ia64_rwreloc_section_type_flags
#undef EXTRA_SECTIONS
#define EXTRA_SECTIONS in_sdata, in_sbss