generalized goto_section
optimized visibility detect