aboutsummaryrefslogtreecommitdiff
path: root/bfd/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/init.c')
-rw-r--r--bfd/init.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/bfd/init.c b/bfd/init.c
index ec6354e..ad10981 100644
--- a/bfd/init.c
+++ b/bfd/init.c
@@ -38,17 +38,24 @@ FUNCTION
bfd_init
SYNOPSIS
- void bfd_init (void);
+ size_t bfd_init (void);
DESCRIPTION
This routine must be called before any other BFD function to
initialize magical internal data structures.
+ Returns a magic number, which may be used to check
+ that the bfd library is configured as expected by users.
+.
+.{* Value returned by bfd_init. *}
+.
+.#define BFD_INIT_MAGIC (sizeof (struct bfd_section))
*/
/* Actually, there is currently nothing for this function to do.
However, someday it may be needed, so keep it around. */
-void
+size_t
bfd_init (void)
{
+ return BFD_INIT_MAGIC;
}