diff options
author | Alan Modra <amodra@gmail.com> | 2023-03-10 10:05:44 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-03-10 14:20:54 +1030 |
commit | 4148b4fe9fd15607aad8b082c7b724f355f2da64 (patch) | |
tree | 76ff795e3b90fd5ac7f9d57c584cae46ee376602 /gas/as.h | |
parent | 8325b42c4b29c5ac06026ca6e4c541067382549b (diff) | |
download | gdb-4148b4fe9fd15607aad8b082c7b724f355f2da64.zip gdb-4148b4fe9fd15607aad8b082c7b724f355f2da64.tar.gz gdb-4148b4fe9fd15607aad8b082c7b724f355f2da64.tar.bz2 |
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.h')
-rw-r--r-- | gas/as.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -538,6 +538,7 @@ int check_eh_frame (struct expressionS *, unsigned int *); int eh_frame_estimate_size_before_relax (fragS *); int eh_frame_relax_frag (fragS *); void eh_frame_convert_frag (fragS *); +void eh_begin (void); int generic_force_reloc (struct fix *); /* SFrame FRE optimization. */ |