diff options
author | midipix <writeonce@midipix.org> | 2015-07-18 16:39:36 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-07-18 16:39:36 -0400 |
commit | 7a5252e170f6e2c6c1d483fe7f2ba56e98b1f8a2 (patch) | |
tree | 6366afc8ae9639a8fe936bd05edc3602fd489bd9 /gcc/varasm.c | |
parent | 49e286b1a48614877b448f7638d5d348a7dba9f5 (diff) | |
download | cbb-gcc-4.6.4-7a5252e170f6e2c6c1d483fe7f2ba56e98b1f8a2.tar.bz2 cbb-gcc-4.6.4-7a5252e170f6e2c6c1d483fe7f2ba56e98b1f8a2.tar.xz |
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.
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 17 |
1 files changed, 11 insertions, 6 deletions
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); + } } } |