diff options
author | Alan Modra <amodra@gmail.com> | 2023-01-11 18:28:33 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-01-11 19:05:26 +1030 |
commit | a95fb4e34650382a4eb0856035129f2a2f0aaf4c (patch) | |
tree | 4b02a615c0dee9e07ddeac4e0eb470cd1664ec17 /gas | |
parent | da1f81c128b9be3cface7b0860085da8c6452510 (diff) | |
download | gdb-a95fb4e34650382a4eb0856035129f2a2f0aaf4c.zip gdb-a95fb4e34650382a4eb0856035129f2a2f0aaf4c.tar.gz gdb-a95fb4e34650382a4eb0856035129f2a2f0aaf4c.tar.bz2 |
Tidy some global bfd state used by gas
* subsegs.c (subsegs_end): Clear abs and und userdata.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/subsegs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/subsegs.c b/gas/subsegs.c index c834ee2..ae42b4e 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 |