diff options
author | Alan Modra <amodra@gmail.com> | 2017-04-27 12:03:39 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-04-27 12:03:39 +0930 |
commit | 76c20d54ca5042e11af9ddf5723cc24cf47736ec (patch) | |
tree | a14eafe2cdfe94597edefc9ff9ad56131fd90bf3 /bfd/elf-bfd.h | |
parent | d7153c4ac333c9127c18efcf184607d368bb142d (diff) | |
download | gdb-76c20d54ca5042e11af9ddf5723cc24cf47736ec.zip gdb-76c20d54ca5042e11af9ddf5723cc24cf47736ec.tar.gz gdb-76c20d54ca5042e11af9ddf5723cc24cf47736ec.tar.bz2 |
Constify elf_backend_eh_frame_address_size
* elf-bfd.h (struct elf_backend_data): Make asection param of
elf_backend_eh_frame_address_size const.
(_bfd_elf_eh_frame_address_size): Likewise.
* elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise.
* elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise.
* elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise.
* elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise.
* elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise.
(next_cie_fde_offset): Constify params.
(offset_adjust, adjust_eh_frame_local_symbols): Likewise.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index bff6abc..79f87b2 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1291,7 +1291,7 @@ struct elf_backend_data that can't be determined for some reason. The default definition goes by the bfd's EI_CLASS. */ unsigned int (*elf_backend_eh_frame_address_size) - (bfd *, asection *); + (bfd *, const asection *); /* These functions tell elf-eh-frame whether to attempt to turn absolute or lsda encodings into pc-relative ones. The default @@ -1987,7 +1987,7 @@ extern void bfd_elf_print_symbol (bfd *, void *, asymbol *, bfd_print_symbol_type); extern unsigned int _bfd_elf_eh_frame_address_size - (bfd *, asection *); + (bfd *, const asection *); extern bfd_byte _bfd_elf_encode_eh_address (bfd *abfd, struct bfd_link_info *info, asection *osec, bfd_vma offset, asection *loc_sec, bfd_vma loc_offset, bfd_vma *encoded); |