summaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-03-10 10:05:44 +1030
committerAlan Modra <amodra@gmail.com>2023-03-10 14:20:54 +1030
commit4148b4fe9fd15607aad8b082c7b724f355f2da64 (patch)
tree76ff795e3b90fd5ac7f9d57c584cae46ee376602 /gas/as.c
parent8325b42c4b29c5ac06026ca6e4c541067382549b (diff)
downloadbinutils-gdb-4148b4fe9fd15607aad8b082c7b724f355f2da64.tar.gz
eh static data
Fix another case of oss-fuzz tripping over gas static state, ie. starting over testing another input file with rubbish left uncleared in bss. size_end_sym pointed at garbage. * ehopt.c (get_cie_info): Delete forward declaration. (struct frame_data): Move to file scope. (frame): New static, packaged.. (check_eh_frame): ..eh_frame_data and debug_frame_data. (eh_begin): New function. * as.c (gas_init): Call eh_begin. * as.h (eh_begin): Declare.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/as.c b/gas/as.c
index 62f32fc865a..a18438c2542 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -1328,6 +1328,7 @@ gas_init (void)
read_begin ();
input_scrub_begin ();
expr_begin ();
+ eh_begin ();
int macro_strip_at = 0;
#ifdef TC_I960