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.
This commit is contained in:
parent
d7153c4ac3
commit
76c20d54ca
7 changed files with 27 additions and 12 deletions
|
@ -2107,7 +2107,8 @@ m32c_elf_relax_delete_bytes
|
|||
|
||||
/* This is for versions of gcc prior to 4.3. */
|
||||
static unsigned int
|
||||
_bfd_m32c_elf_eh_frame_address_size (bfd *abfd, asection *sec ATTRIBUTE_UNUSED)
|
||||
_bfd_m32c_elf_eh_frame_address_size (bfd *abfd,
|
||||
const asection *sec ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if ((elf_elfheader (abfd)->e_flags & EF_M32C_CPU_MASK) == EF_M32C_CPU_M16C)
|
||||
return 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue