https://sourceware.org/bugzilla/show_bug.cgi?id=33821
--- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d75f191dc631664e4f18c6938f0cb72f1f50c34a commit d75f191dc631664e4f18c6938f0cb72f1f50c34a Author: Alan Modra <[email protected]> Date: Thu Jan 22 17:11:35 2026 +1030 PR 33821 use after free commit e6357caf7579 reset_resolved_wilds didn't clear out matching_sections in output sections with constraint -1. Fix that and tidy call sites of obstack_init and obstack_free for matching_obstack so that the obstack is allocated later and freed completely. Also tidy ptroot. PR 33821 * ldlang.c (the_root): Delete, replacing with.. (ptroot): ..this, no longer a pointer. Update all uses. (lang_for_each_statement_worker): Add "constrained" param. Ignore os.constraint if false. (reset_resolved_wilds): Use lang_for_each_statement_worker. Move obstack_init.. (lang_init): ..and this obstack_init of matching_obstack.. (resolve_wilds): ..to here. * ldlang.h (lang_for_each_statement_worker): Update declaration. (lang_for_each_statement): Update. * emultempl/xtensaelf.em: Update lang_for_each_statement_worker calls throughout. -- You are receiving this mail because: You are on the CC list for the bug.
