From 7a5252e170f6e2c6c1d483fe7f2ba56e98b1f8a2 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 18 Jul 2015 16:39:36 -0400 Subject: initial implementation of GOT entries and initial support of PE visibility for the midipix targets. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- gcc/varasm.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 977ca40a0..34890b338 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -2045,14 +2045,19 @@ assemble_variable (tree decl, int top_level ATTRIBUTE_UNUSED, gcc_assert (!dont_output_data); place_block_symbol (symbol); } - else if (SECTION_STYLE (sect) == SECTION_NOSWITCH) - assemble_noswitch_variable (decl, name, sect); else { - switch_to_section (sect); - if (DECL_ALIGN (decl) > BITS_PER_UNIT) - ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (DECL_ALIGN_UNIT (decl))); - assemble_variable_contents (decl, name, dont_output_data); + ASM_OUTPUT_GOT_ENTRY (asm_out_file,name,decl,sect); + + if (SECTION_STYLE (sect) == SECTION_NOSWITCH) + assemble_noswitch_variable (decl, name, sect); + else + { + switch_to_section (sect); + if (DECL_ALIGN (decl) > BITS_PER_UNIT) + ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (DECL_ALIGN_UNIT (decl))); + assemble_variable_contents (decl, name, dont_output_data); + } } } -- cgit v1.2.3