Move bfd_init to bfd.c

Luis Machado luis.machado@arm.com
Tue Jan 10 09:57:36 GMT 2023


On 1/10/23 09:47, Jan Beulich via Binutils wrote:
> 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
> 

I seem to be getting:

../../../repos/binutils-gdb/bfd/doc/bfd.texi:246: @include: could not find init.texi


More information about the Binutils mailing list