]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/bfd.c
Move bfd_init to bfd.c
authorAlan Modra <amodra@gmail.com>
Fri, 6 Jan 2023 10:45:31 +0000 (21:15 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Jan 2023 22:45:51 +0000 (09:15 +1030)
commitb1c95bc4dd737d3d0a6c9a1b6e022e3ef85110bc
treedf905a16b08b2e250e5d8adb4d79c149556531a7
parentbf716a53bd8f725975979397b3c6b9d4bd4434ef
Move bfd_init to bfd.c

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.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* po/SRC-POTFILES.in: Regenerate.
bfd/Makefile.am
bfd/Makefile.in
bfd/bfd-in2.h
bfd/bfd.c
bfd/doc/local.mk
bfd/init.c
bfd/po/SRC-POTFILES.in