ldbuildid.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* ldbuildid.h -
  2. Copyright (C) 2013-2022 Free Software Foundation, Inc.
  3. This file is part of the GNU Binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #ifndef LDBUILDID_H
  17. #define LDBUILDID_H
  18. extern bool
  19. validate_build_id_style (const char *);
  20. extern bfd_size_type
  21. compute_build_id_size (const char *);
  22. typedef void (*sum_fn) (const void *, size_t, void *);
  23. typedef bool (*checksum_fn) (bfd *,
  24. void (*) (const void *, size_t, void *),
  25. void *);
  26. extern bool
  27. generate_build_id (bfd *, const char *, checksum_fn, unsigned char *, int);
  28. #endif /* LDBUILDID_H */