diff options
Diffstat (limited to 'gcc/config/i386/midipix.c')
-rw-r--r-- | gcc/config/i386/midipix.c | 9 |
1 files changed, 7 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; } |