ld: put wild matching_sections on an obstack so that the memory can be reclaimed easily when reset_resolved_wilds throws it all away. * ldlang.c (matching_obstack): New static var. (add_matching_section): Rewrite to use matching_obstack. (lang_init): Init matching_obstack. (reset_resolved_wilds): Free matching_obstack.