Commit 4ce21457 by Tony Reix Committed by Ian Lance Taylor

go-backend.c (go_write_export_data): Use EXCLUDE section for AIX.

	* go-backend.c (go_write_export_data): Use EXCLUDE section for
	AIX.

From-SVN: r250648
parent 91258d93
2017-07-27 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> 2017-06-09 Ian Lance Taylor <iant@golang.org>
* go-lang.c (go_langhook_post_options): If -fsplit-stack is turned * go-lang.c (go_langhook_post_options): If -fsplit-stack is turned
......
...@@ -45,6 +45,10 @@ along with GCC; see the file COPYING3. If not see ...@@ -45,6 +45,10 @@ along with GCC; see the file COPYING3. If not see
#define GO_EXPORT_SECTION_NAME ".go_export" #define GO_EXPORT_SECTION_NAME ".go_export"
#endif #endif
#ifndef TARGET_AIX
#define TARGET_AIX 0
#endif
/* This file holds all the cases where the Go frontend needs /* This file holds all the cases where the Go frontend needs
information from gcc's backend. */ information from gcc's backend. */
...@@ -101,7 +105,9 @@ go_write_export_data (const char *bytes, unsigned int size) ...@@ -101,7 +105,9 @@ go_write_export_data (const char *bytes, unsigned int size)
if (sec == NULL) if (sec == NULL)
{ {
gcc_assert (targetm_common.have_named_sections); gcc_assert (targetm_common.have_named_sections);
sec = get_section (GO_EXPORT_SECTION_NAME, SECTION_DEBUG, NULL); sec = get_section (GO_EXPORT_SECTION_NAME,
TARGET_AIX ? SECTION_EXCLUDE : SECTION_DEBUG,
NULL);
} }
switch_to_section (sec); switch_to_section (sec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment