diff options
Diffstat (limited to 'gcc/config/i386/interix.c')
-rw-r--r-- | gcc/config/i386/interix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/i386/interix.c b/gcc/config/i386/interix.c index 5a2b8b6ab41..4f4f8233e18 100644 --- a/gcc/config/i386/interix.c +++ b/gcc/config/i386/interix.c @@ -93,6 +93,9 @@ i386_pe_unique_section (decl, reloc) without a .rdata section. */ if (TREE_CODE (decl) == FUNCTION_DECL) prefix = ".text$"; + else if (DECL_INITIAL (decl) == 0 + || DECL_INITIAL (decl) == error_mark_node) + prefix = ""; else if (DECL_READONLY_SECTION (decl, reloc)) #ifdef READONLY_DATA_SECTION prefix = ".rdata$"; |