forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
|
||||
generated from "bfd-in.h", "init.c", "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" and "compress.c".
|
||||
generated from "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" and "compress.c".
|
||||
Run "make headers" in your build bfd/ to regenerate. */
|
||||
|
||||
/* Main header file for the bfd library -- portable access to object files.
|
||||
@@ -488,13 +488,6 @@ startswith (const char *str, const char *prefix)
|
||||
{
|
||||
return strncmp (str, prefix, strlen (prefix)) == 0;
|
||||
}
|
||||
/* Extracted from init.c. */
|
||||
unsigned int bfd_init (void);
|
||||
|
||||
|
||||
/* Value returned by bfd_init. */
|
||||
|
||||
#define BFD_INIT_MAGIC (sizeof (struct bfd_section))
|
||||
/* Extracted from opncls.c. */
|
||||
/* Set to N to open the next N BFDs using an alternate id space. */
|
||||
extern unsigned int bfd_use_reserved_id;
|
||||
@@ -7263,6 +7256,11 @@ bfd_vma bfd_emul_get_commonpagesize (const char *);
|
||||
|
||||
char *bfd_demangle (bfd *, const char *, int);
|
||||
|
||||
unsigned int bfd_init (void);
|
||||
|
||||
/* Value returned by bfd_init. */
|
||||
#define BFD_INIT_MAGIC (sizeof (struct bfd_section))
|
||||
|
||||
/* Extracted from archive.c. */
|
||||
symindex bfd_get_next_mapent
|
||||
(bfd *abfd, symindex previous, carsym **sym);
|
||||
|
||||
Reference in New Issue
Block a user