1*fae548d3Szrj /* bfd initialization stuff
2*fae548d3Szrj Copyright (C) 1990-2020 Free Software Foundation, Inc.
3*fae548d3Szrj Written by Steve Chamberlain of Cygnus Support.
4*fae548d3Szrj
5*fae548d3Szrj This file is part of BFD, the Binary File Descriptor library.
6*fae548d3Szrj
7*fae548d3Szrj This program is free software; you can redistribute it and/or modify
8*fae548d3Szrj it under the terms of the GNU General Public License as published by
9*fae548d3Szrj the Free Software Foundation; either version 3 of the License, or
10*fae548d3Szrj (at your option) any later version.
11*fae548d3Szrj
12*fae548d3Szrj This program is distributed in the hope that it will be useful,
13*fae548d3Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of
14*fae548d3Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15*fae548d3Szrj GNU General Public License for more details.
16*fae548d3Szrj
17*fae548d3Szrj You should have received a copy of the GNU General Public License
18*fae548d3Szrj along with this program; if not, write to the Free Software
19*fae548d3Szrj Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20*fae548d3Szrj MA 02110-1301, USA. */
21*fae548d3Szrj
22*fae548d3Szrj #include "sysdep.h"
23*fae548d3Szrj #include "bfd.h"
24*fae548d3Szrj #include "libbfd.h"
25*fae548d3Szrj
26*fae548d3Szrj /*
27*fae548d3Szrj SECTION
28*fae548d3Szrj Initialization
29*fae548d3Szrj
30*fae548d3Szrj SUBSECTION
31*fae548d3Szrj Initialization functions
32*fae548d3Szrj
33*fae548d3Szrj These are the functions that handle initializing a BFD.
34*fae548d3Szrj */
35*fae548d3Szrj
36*fae548d3Szrj /*
37*fae548d3Szrj FUNCTION
38*fae548d3Szrj bfd_init
39*fae548d3Szrj
40*fae548d3Szrj SYNOPSIS
41*fae548d3Szrj unsigned int bfd_init (void);
42*fae548d3Szrj
43*fae548d3Szrj DESCRIPTION
44*fae548d3Szrj This routine must be called before any other BFD function to
45*fae548d3Szrj initialize magical internal data structures.
46*fae548d3Szrj Returns a magic number, which may be used to check
47*fae548d3Szrj that the bfd library is configured as expected by users.
48*fae548d3Szrj .
49*fae548d3Szrj .{* Value returned by bfd_init. *}
50*fae548d3Szrj .
51*fae548d3Szrj .#define BFD_INIT_MAGIC (sizeof (struct bfd_section))
52*fae548d3Szrj */
53*fae548d3Szrj
54*fae548d3Szrj /* Actually, there is currently nothing for this function to do.
55*fae548d3Szrj However, someday it may be needed, so keep it around. */
56*fae548d3Szrj
57*fae548d3Szrj unsigned int
bfd_init(void)58*fae548d3Szrj bfd_init (void)
59*fae548d3Szrj {
60*fae548d3Szrj return BFD_INIT_MAGIC;
61*fae548d3Szrj }
62