Move bfd_init to bfd.c

Jan Beulich jbeulich@suse.com
Tue Jan 10 09:47:25 GMT 2023


On 10.01.2023 00:18, Alan Modra via Binutils wrote:
> init.c contains just one function that doesn't do much.  Move it to
> bfd.c and give it something to do, initialising static state.  So far
> the only initialisation is for bfd.c static variables.
> 
> The idea behind reinitialising state is to see whether some set of
> flaky oss-fuzz crashes go away.  oss-fuzz stresses binutils in ways
> that can't occur in reality, feeding multiple testcases into the
> internals of binutils.  So one testcase may affect the result of the
> next testcase.
> 
> 	* init.c: Delete file.  Move bfd_init to..
> 	* bfd.c (bfd_init): ..here.  Init static variables.
> 	* Makefile.am (BFD32_LIBS): Remove init.lo.
> 	(BFD32_LIBS_CFILES, BFD_H_FILES): Remove init.c.
> 	* doc/local.mk: Remove mention of init.texi and init.c.

If I'm not mistaken this should also have touched bfd.texi to remove
the inclusion of init.texi?

Jan



More information about the Binutils mailing list