This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,AIX] Manage .go_export section for AIX
- From: "REIX, Tony" <tony dot reix at atos dot net>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Ian Lance Taylor <iant at golang dot org>, "dje dot gcc at gmail dot com" <dje dot gcc at gmail dot com>
- Date: Wed, 26 Jul 2017 10:09:26 +0000
- Subject: [PATCH,AIX] Manage .go_export section for AIX
- Authentication-results: sourceware.org; auth=none
Description:
* This patch manages the .go_export section as an EXCLUDE section on AIX.
Tests:
* Fedora25/x86_64 + GCC trunk : Configure/Build: SUCCESS
- build made by means of gmake.
ChangeLog:
* go-backend.c (go_write_export_data): Use EXCLUDE section for AIX.
Cordialement,
Tony Reix
Bull - ATOS
IBM Coop Architect & Technical Leader
Office : +33 (0) 4 76 29 72 67
1 rue de Provence - 38432 Échirolles - France
www.atos.net
Index: gcc/go/ChangeLog
===================================================================
--- gcc/go/ChangeLog (révision 250528)
+++ gcc/go/ChangeLog (copie de travail)
@@ -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
Index: gcc/go/go-backend.c
===================================================================
--- gcc/go/go-backend.c (révision 250528)
+++ gcc/go/go-backend.c (copie de travail)
@@ -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);