aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-msp430.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-04-27 12:03:39 +0930
committerAlan Modra <amodra@gmail.com>2017-04-27 12:03:39 +0930
commit76c20d54ca5042e11af9ddf5723cc24cf47736ec (patch)
treea14eafe2cdfe94597edefc9ff9ad56131fd90bf3 /bfd/elf32-msp430.c
parentd7153c4ac333c9127c18efcf184607d368bb142d (diff)
downloadgdb-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/elf32-msp430.c')
-rw-r--r--bfd/elf32-msp430.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-msp430.c b/bfd/elf32-msp430.c
index 8755280..25bbdc8 100644
--- a/bfd/elf32-msp430.c
+++ b/bfd/elf32-msp430.c
@@ -2552,7 +2552,8 @@ uses_large_model (bfd *abfd)
}
static unsigned int
-elf32_msp430_eh_frame_address_size (bfd *abfd, asection *sec ATTRIBUTE_UNUSED)
+elf32_msp430_eh_frame_address_size (bfd *abfd,
+ const asection *sec ATTRIBUTE_UNUSED)
{
return uses_large_model (abfd) ? 4 : 2;
}