summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/midipix.c9
-rw-r--r--gcc/config/i386/midipix.h3
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c
index f9b6d4190..5e206f87a 100644
--- a/gcc/config/i386/midipix.c
+++ b/gcc/config/i386/midipix.c
@@ -33,6 +33,9 @@
#include "function.h"
#include "cgraph.h"
+/* got support */
+int flag_got_established_section = 0;
+
/* common specs */
const int TARGET_NOP_FUN_DLLIMPORT = 0;
const int use_pe_aligned_common = 1;
@@ -193,16 +196,18 @@ void midipix_asm_output_got_entry(
in_section->named.decl);
/* re-establish .bss section */
- else if (sect == bss_noswitch_section)
+ else if ((sect == bss_noswitch_section) || (in_section == bss_noswitch_section))
fputs("\t.bss\n",asmout);
/* re-establish .data section */
- else if (sect == data_section)
+ else if ((sect == data_section) || (sect == data_section))
fputs("\t.data\n",asmout);
/* re-establish .text section (default) */
else
fputs("\t.text\n",asmout);
+
+ flag_got_established_section = 1;
}
diff --git a/gcc/config/i386/midipix.h b/gcc/config/i386/midipix.h
index e622c3224..925c3ad96 100644
--- a/gcc/config/i386/midipix.h
+++ b/gcc/config/i386/midipix.h
@@ -124,6 +124,9 @@
#undef TARGET_PECOFF
#define TARGET_PECOFF (1)
+#undef TARGET_ASSEMBLY_GOT_ENTRIES
+#define TARGET_ASSEMBLY_GOT_ENTRIES (1)
+
#undef HAS_INIT_SECTION
#define HAS_INIT_SECTION (1)