===================================================================
@@ -1,3 +1,7 @@
+2017-07-26 Tony Reix <tony.reix@atos.net>
+
+ * go-backend.c (go_write_export_data): Use EXCLUDE section for AIX.
+
2017-06-09 Ian Lance Taylor <iant@golang.org>
* go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
===================================================================
@@ -101,7 +101,11 @@ go_write_export_data (const char *bytes, unsigned
if (sec == NULL)
{
gcc_assert (targetm_common.have_named_sections);
+#ifndef _AIX
sec = get_section (GO_EXPORT_SECTION_NAME, SECTION_DEBUG, NULL);
+#else
+ sec = get_section (GO_EXPORT_SECTION_NAME, SECTION_EXCLUDE, NULL);
+#endif
}
switch_to_section (sec);