From a95fb4e34650382a4eb0856035129f2a2f0aaf4c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 11 Jan 2023 18:28:33 +1030 Subject: [PATCH] Tidy some global bfd state used by gas * subsegs.c (subsegs_end): Clear abs and und userdata. --- gas/subsegs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gas/subsegs.c b/gas/subsegs.c index c834ee2157e..ae42b4e76d9 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -50,6 +50,8 @@ subsegs_end (struct obstack **obs) for (; *obs; obs++) _obstack_free (*obs, NULL); _obstack_free (&frchains, NULL); + bfd_set_section_userdata (bfd_abs_section_ptr, NULL); + bfd_set_section_userdata (bfd_und_section_ptr, NULL); } static void -- 2.30.2