init.c 1.6 KB

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