diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac064a01c45b..bbc5827279b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-30 Eric Botcazou + + PR target/47038 + * config/sparc/sparc.c (sparc_file_end): Call resolve_unique_section + on the GOT helper if USE_HIDDEN_LINKONCE. + 2010-12-30 Joseph Myers PR c/46889 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 7df0dfba4d5e..62fc32830afa 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -9534,6 +9534,7 @@ sparc_file_end (void) make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl)); DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN; DECL_VISIBILITY_SPECIFIED (decl) = 1; + resolve_unique_section (decl, 0, flag_function_sections); allocate_struct_function (decl, true); cfun->is_thunk = 1; current_function_decl = decl;