From b35d266b300fb3acd9e4a6190da4c3c5368ad734 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 5 Jul 2005 06:23:37 +0000 Subject: * elf.c (special_sections): Move const qualifier. (special_sections_b..special_sections_t): Likewise. * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate const. (elf32_arm_symbian_special_sections): Move const qualifier. * elf32-m32r.c: Similarly. * elf32-m68hc11.c: Similarly. * elf32-m68hc12.c: Similarly. * elf32-mcore.c: Similarly. * elf32-ppc.c: Similarly. * elf32-sh64.c: Similarly. * elf32-v850.c: Similarly. * elf32-xtensa.c: Similarly. * elf64-alpha.c: Similarly. * elf64-hppa.c: Similarly. * elf64-ppc.c: Similarly. * elf64-sh64.c: Similarly. * elfxx-ia64.c: Similarly. * elfxx-mips.c: Similarly. --- bfd/elf.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'bfd/elf.c') diff --git a/bfd/elf.c b/bfd/elf.c index 0f9b6c2..f141325 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -2164,19 +2164,19 @@ bfd_section_from_elf_index (bfd *abfd, unsigned int index) return elf_elfsections (abfd)[index]->bfd_section; } -static struct bfd_elf_special_section const special_sections_b[] = +static const struct bfd_elf_special_section special_sections_b[] = { { ".bss", 4, -2, SHT_NOBITS, SHF_ALLOC + SHF_WRITE }, { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_c[] = +static const struct bfd_elf_special_section special_sections_c[] = { { ".comment", 8, 0, SHT_PROGBITS, 0 }, { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_d[] = +static const struct bfd_elf_special_section special_sections_d[] = { { ".data", 5, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE }, { ".data1", 6, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE }, @@ -2191,14 +2191,14 @@ static struct bfd_elf_special_section const special_sections_d[] = { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_f[] = +static const struct bfd_elf_special_section special_sections_f[] = { { ".fini", 5, 0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR }, { ".fini_array", 11, 0, SHT_FINI_ARRAY, SHF_ALLOC + SHF_WRITE }, { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_g[] = +static const struct bfd_elf_special_section special_sections_g[] = { { ".gnu.linkonce.b",15, -2, SHT_NOBITS, SHF_ALLOC + SHF_WRITE }, { ".got", 4, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE }, @@ -2210,13 +2210,13 @@ static struct bfd_elf_special_section const special_sections_g[] = { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_h[] = +static const struct bfd_elf_special_section special_sections_h[] = { { ".hash", 5, 0, SHT_HASH, SHF_ALLOC }, { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_i[] = +static const struct bfd_elf_special_section special_sections_i[] = { { ".init", 5, 0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR }, { ".init_array", 11, 0, SHT_INIT_ARRAY, SHF_ALLOC + SHF_WRITE }, @@ -2224,27 +2224,27 @@ static struct bfd_elf_special_section const special_sections_i[] = { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_l[] = +static const struct bfd_elf_special_section special_sections_l[] = { { ".line", 5, 0, SHT_PROGBITS, 0 }, { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_n[] = +static const struct bfd_elf_special_section special_sections_n[] = { { ".note.GNU-stack",15, 0, SHT_PROGBITS, 0 }, { ".note", 5, -1, SHT_NOTE, 0 }, { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_p[] = +static const struct bfd_elf_special_section special_sections_p[] = { { ".preinit_array", 14, 0, SHT_PREINIT_ARRAY, SHF_ALLOC + SHF_WRITE }, { ".plt", 4, 0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR }, { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_r[] = +static const struct bfd_elf_special_section special_sections_r[] = { { ".rodata", 7, -2, SHT_PROGBITS, SHF_ALLOC }, { ".rodata1", 8, 0, SHT_PROGBITS, SHF_ALLOC }, @@ -2253,7 +2253,7 @@ static struct bfd_elf_special_section const special_sections_r[] = { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_s[] = +static const struct bfd_elf_special_section special_sections_s[] = { { ".shstrtab", 9, 0, SHT_STRTAB, 0 }, { ".strtab", 7, 0, SHT_STRTAB, 0 }, @@ -2262,7 +2262,7 @@ static struct bfd_elf_special_section const special_sections_s[] = { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const special_sections_t[] = +static const struct bfd_elf_special_section special_sections_t[] = { { ".text", 5, -2, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR }, { ".tbss", 5, -2, SHT_NOBITS, SHF_ALLOC + SHF_WRITE + SHF_TLS }, @@ -2270,7 +2270,7 @@ static struct bfd_elf_special_section const special_sections_t[] = { NULL, 0, 0, 0, 0 } }; -static struct bfd_elf_special_section const *special_sections[] = +static const struct bfd_elf_special_section *special_sections[] = { special_sections_b, /* 'b' */ special_sections_c, /* 'b' */ -- cgit v1.1