aboutsummaryrefslogtreecommitdiff
path: root/bfd/Makefile.am
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-01-06 21:15:31 +1030
committerAlan Modra <amodra@gmail.com>2023-01-10 09:15:51 +1030
commitb1c95bc4dd737d3d0a6c9a1b6e022e3ef85110bc (patch)
treedf905a16b08b2e250e5d8adb4d79c149556531a7 /bfd/Makefile.am
parentbf716a53bd8f725975979397b3c6b9d4bd4434ef (diff)
downloadgdb-b1c95bc4dd737d3d0a6c9a1b6e022e3ef85110bc.zip
gdb-b1c95bc4dd737d3d0a6c9a1b6e022e3ef85110bc.tar.gz
gdb-b1c95bc4dd737d3d0a6c9a1b6e022e3ef85110bc.tar.bz2
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.
Diffstat (limited to 'bfd/Makefile.am')
-rw-r--r--bfd/Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 75d21db..a745372 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -77,7 +77,7 @@ BFD_H = bfd.h
BFD32_LIBS = \
archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo \
coff-bfd.lo compress.lo corefile.lo elf-properties.lo format.lo \
- hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \
+ hash.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \
section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo \
binary.lo ihex.lo srec.lo tekhex.lo verilog.lo
@@ -86,7 +86,7 @@ BFD64_LIBS = archive64.lo
BFD32_LIBS_CFILES = \
archive.c archures.c bfd.c bfdio.c bfdwin.c cache.c coff-bfd.c \
compress.c corefile.c elf-properties.c format.c hash.c \
- init.c libbfd.c linker.c merge.c opncls.c reloc.c \
+ libbfd.c linker.c merge.c opncls.c reloc.c \
section.c simple.c stab-syms.c stabs.c syms.c targets.c \
binary.c ihex.c srec.c tekhex.c verilog.c
@@ -923,7 +923,7 @@ stmp-bfd-h: bfd-in3.h
rm -f bfd-tmp.h
touch stmp-bfd-h
-BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \
+BFD_H_FILES = bfd-in.h opncls.c libbfd.c \
bfdio.c bfdwin.c section.c archures.c reloc.c \
syms.c bfd.c archive.c corefile.c targets.c format.c \
linker.c simple.c compress.c