diff options
author | Tony Reix <tony.reix@atos.net> | 2017-07-28 00:16:36 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-07-28 00:16:36 +0000 |
commit | 4ce21457db15315dc13610b6b3d5336a442a5c94 (patch) | |
tree | f4c3fcabd1ee477acecedfa879bb5a2a2c351674 /gcc/go/go-backend.c | |
parent | 91258d934fe309c928f003328338d69d834dff32 (diff) | |
download | gcc-4ce21457db15315dc13610b6b3d5336a442a5c94.zip gcc-4ce21457db15315dc13610b6b3d5336a442a5c94.tar.gz gcc-4ce21457db15315dc13610b6b3d5336a442a5c94.tar.bz2 |
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
Diffstat (limited to 'gcc/go/go-backend.c')
-rw-r--r-- | gcc/go/go-backend.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/go/go-backend.c b/gcc/go/go-backend.c index 2f8d2f4..21277ea 100644 --- a/gcc/go/go-backend.c +++ b/gcc/go/go-backend.c @@ -45,6 +45,10 @@ along with GCC; see the file COPYING3. If not see #define GO_EXPORT_SECTION_NAME ".go_export" #endif +#ifndef TARGET_AIX +#define TARGET_AIX 0 +#endif + /* This file holds all the cases where the Go frontend needs information from gcc's backend. */ @@ -101,7 +105,9 @@ go_write_export_data (const char *bytes, unsigned int size) if (sec == NULL) { 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); |