eh static data
authorAlan Modra <amodra@gmail.com>
Thu, 9 Mar 2023 23:35:44 +0000 (10:05 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Mar 2023 03:50:54 +0000 (14:20 +1030)
commit4148b4fe9fd15607aad8b082c7b724f355f2da64
tree76ff795e3b90fd5ac7f9d57c584cae46ee376602
parent8325b42c4b29c5ac06026ca6e4c541067382549b
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.
gas/as.c
gas/as.h
gas/ehopt.c