Change signature of bfd crc functions
authorAlan Modra <amodra@gmail.com>
Sat, 29 Apr 2023 01:07:28 +0000 (10:37 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 3 May 2023 05:10:49 +0000 (14:40 +0930)
commitdf2fc6fbfd8f8188b06a6dd3c8987e8c3135ec58
tree565073f8cc33644ef1474609d5ba783ff2947ab0
parente84ca83738a748d8afe53e74b9666e74ae708dcc
Change signature of bfd crc functions

The crc calculated is 32 bits.  Replace uses of unsigned long with
uint32_t.  Also use bfd_byte* for buffers.

bfd/
* opncls.c (bfd_calc_gnu_debuglink_crc32): Use stdint types.
(bfd_get_debug_link_info_1, bfd_get_debug_link_info): Likewise.
(separate_debug_file_exists, bfd_follow_gnu_debuglink): Likewise.
(bfd_fill_in_gnu_debuglink_section): Likewise.
* bfd-in2.h: Regenerate.
gdb/
* auto-load.c (auto_load_objfile_script): Update type of
bfd_get_debug_link_info argument.
* symfile.c (find_separate_debug_file_by_debuglink): Likewise.
* gdb_bfd.c (get_file_crc): Update type of
bfd_calc_gnu_debuglink_crc32 argument.
bfd/bfd-in2.h
bfd/opncls.c
gdb/auto-load.c
gdb/gdb_bfd.c
gdb/symfile.c