This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB head fails to compile for target=arm-elf


On Mon, Jul 04, 2005 at 11:30:15AM -0400, Daniel Jacobowitz wrote:
> Hey, Alan...
> 
> On Tue, Jul 05, 2005 at 12:03:05AM +0900, Janne Hellsten wrote:
> > Looks like arm-elf is not the only target that behaves this way.  When
> > trying --target=sh-elf, I get this:
> 
> > ../../src/bfd/elf32-sh64.c: In function `sh64_elf_get_sec_type_attr':
> > ../../src/bfd/elf32-sh64.c:766: warning: duplicate `const'
> 
> and for arm-elf also, and possibly others.  I think you misplaced a
> const in the special_section changes yesterday.

Yes, sorry.  gcc-3.5 didn't notice or care about it.  I've moved the
const to the usual location on the arrays, and removed the duplicate.

	* 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.

Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.305
diff -u -p -r1.305 elf.c
--- bfd/elf.c	4 Jul 2005 10:30:09 -0000	1.305
+++ bfd/elf.c	5 Jul 2005 03:36:47 -0000
@@ -2164,19 +2164,19 @@ bfd_section_from_elf_index (bfd *abfd, u
   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 co
   { 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 co
   { 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 co
   { 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 co
   { 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 co
   { 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 co
   { 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' */
Index: bfd/elf32-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.c,v
retrieving revision 1.45
diff -u -p -r1.45 elf32-arm.c
--- bfd/elf32-arm.c	4 Jul 2005 01:53:39 -0000	1.45
+++ bfd/elf32-arm.c	5 Jul 2005 03:36:53 -0000
@@ -6942,7 +6942,7 @@ elf32_arm_symbian_link_hash_table_create
   return ret;
 }     
 
-static struct bfd_elf_special_section const
+static const struct bfd_elf_special_section
 elf32_arm_symbian_special_sections[] =
 {
   /* In a BPABI executable, the dynamic linking sections do not go in
@@ -6966,7 +6966,7 @@ elf32_arm_symbian_special_sections[] =
 static const struct bfd_elf_special_section *
 elf32_arm_symbian_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-m32r.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32r.c,v
retrieving revision 1.66
diff -u -p -r1.66 elf32-m32r.c
--- bfd/elf32-m32r.c	4 Jul 2005 13:54:36 -0000	1.66
+++ bfd/elf32-m32r.c	5 Jul 2005 03:36:54 -0000
@@ -4013,7 +4013,7 @@ m32r_elf_check_relocs (bfd *abfd,
   return TRUE;
 }
 
-static struct bfd_elf_special_section const m32r_elf_special_sections[] =
+static const struct bfd_elf_special_section m32r_elf_special_sections[] =
 {
   { ".sbss",    5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
   { ".sdata",   6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -4023,7 +4023,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 m32r_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-m68hc11.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68hc11.c,v
retrieving revision 1.30
diff -u -p -r1.30 elf32-m68hc11.c
--- bfd/elf32-m68hc11.c	4 Jul 2005 01:53:39 -0000	1.30
+++ bfd/elf32-m68hc11.c	5 Jul 2005 03:36:54 -0000
@@ -1257,7 +1257,7 @@ m68hc11_elf_relax_delete_bytes (bfd *abf
      are located in .page0.
    - The .vectors is the section that represents the interrupt
      vectors.  */
-static struct bfd_elf_special_section const elf32_m68hc11_special_sections[] =
+static const struct bfd_elf_special_section elf32_m68hc11_special_sections[] =
 {
   { ".eeprom",   7, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".page0",    6, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -1269,7 +1269,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf32_m68hc11_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-m68hc12.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68hc12.c,v
retrieving revision 1.22
diff -u -p -r1.22 elf32-m68hc12.c
--- bfd/elf32-m68hc12.c	4 Jul 2005 01:53:39 -0000	1.22
+++ bfd/elf32-m68hc12.c	5 Jul 2005 03:36:55 -0000
@@ -535,7 +535,7 @@ m68hc12_elf_set_mach_from_flags (bfd *ab
      Page0 accesses are faster on the M68HC12.
    - The .vectors is the section that represents the interrupt
      vectors.  */
-static struct bfd_elf_special_section const elf32_m68hc12_special_sections[] =
+static const struct bfd_elf_special_section elf32_m68hc12_special_sections[] =
 {
   { ".eeprom",   7, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".page0",    6, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -547,7 +547,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf32_m68hc12_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-mcore.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-mcore.c,v
retrieving revision 1.42
diff -u -p -r1.42 elf32-mcore.c
--- bfd/elf32-mcore.c	4 Jul 2005 01:53:39 -0000	1.42
+++ bfd/elf32-mcore.c	5 Jul 2005 03:36:55 -0000
@@ -635,7 +635,7 @@ mcore_elf_check_relocs (bfd * abfd,
   return TRUE;
 }
 
-static struct bfd_elf_special_section const mcore_elf_special_sections[]=
+static const struct bfd_elf_special_section mcore_elf_special_sections[]=
 {
   { ".ctors",   6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".dtors",   6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -645,7 +645,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 mcore_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.167
diff -u -p -r1.167 elf32-ppc.c
--- bfd/elf32-ppc.c	4 Jul 2005 01:53:39 -0000	1.167
+++ bfd/elf32-ppc.c	5 Jul 2005 03:36:57 -0000
@@ -1828,7 +1828,7 @@ ppc_elf_additional_program_headers (bfd 
    that the linker doesn't crater when trying to make more than
    2 sections.  */
 
-static struct bfd_elf_special_section const ppc_elf_special_sections[] =
+static const struct bfd_elf_special_section ppc_elf_special_sections[] =
 {
   { ".plt",              4,  0, SHT_NOBITS,   SHF_ALLOC + SHF_EXECINSTR },
   { ".sbss",             5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
@@ -1849,7 +1849,7 @@ static struct bfd_elf_special_section pp
 static const struct bfd_elf_special_section *
 ppc_elf_get_sec_type_attr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-sh64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh64.c,v
retrieving revision 1.35
diff -u -p -r1.35 elf32-sh64.c
--- bfd/elf32-sh64.c	4 Jul 2005 01:53:39 -0000	1.35
+++ bfd/elf32-sh64.c	5 Jul 2005 03:36:58 -0000
@@ -754,7 +754,7 @@ sh64_elf_merge_symbol_attribute (struct 
   return;
 }
 
-static struct bfd_elf_special_section const sh64_elf_special_sections[] =
+static const struct bfd_elf_special_section sh64_elf_special_sections[] =
 {
   { ".cranges", 8, 0, SHT_PROGBITS, 0 },
   { NULL,       0, 0, 0,            0 }
@@ -763,7 +763,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 sh64_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-v850.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-v850.c,v
retrieving revision 1.59
diff -u -p -r1.59 elf32-v850.c
--- bfd/elf32-v850.c	4 Jul 2005 01:53:39 -0000	1.59
+++ bfd/elf32-v850.c	5 Jul 2005 03:36:59 -0000
@@ -3024,7 +3024,7 @@ v850_elf_relax_section (bfd *abfd,
   goto finish;
 }
 
-static struct bfd_elf_special_section const v850_elf_special_sections[] =
+static const struct bfd_elf_special_section v850_elf_special_sections[] =
 {
   { ".call_table_data", 16,  0, SHT_PROGBITS,     (SHF_ALLOC
                                                    + SHF_WRITE) },
@@ -3058,7 +3058,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 v850_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-xtensa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xtensa.c,v
retrieving revision 1.50
diff -u -p -r1.50 elf32-xtensa.c
--- bfd/elf32-xtensa.c	4 Jul 2005 01:53:39 -0000	1.50
+++ bfd/elf32-xtensa.c	5 Jul 2005 03:37:05 -0000
@@ -9482,7 +9482,7 @@ xtensa_callback_required_dependence (bfd
 /* The default literal sections should always be marked as "code" (i.e.,
    SHF_EXECINSTR).  This is particularly important for the Linux kernel
    module loader so that the literals are not placed after the text.  */
-static struct bfd_elf_special_section const elf_xtensa_special_sections[] =
+static const struct bfd_elf_special_section elf_xtensa_special_sections[] =
 {
   { ".fini.literal", 13, 0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
   { ".init.literal", 13, 0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
@@ -9493,7 +9493,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf_xtensa_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-alpha.c,v
retrieving revision 1.143
diff -u -p -r1.143 elf64-alpha.c
--- bfd/elf64-alpha.c	4 Jul 2005 01:53:39 -0000	1.143
+++ bfd/elf64-alpha.c	5 Jul 2005 03:37:07 -0000
@@ -5162,7 +5162,7 @@ elf64_alpha_reloc_type_class (const Elf_
     }
 }
 
-static struct bfd_elf_special_section const elf64_alpha_special_sections[] =
+static const struct bfd_elf_special_section elf64_alpha_special_sections[] =
 {
   { ".sbss",  5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE + SHF_ALPHA_GPREL },
   { ".sdata", 6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_ALPHA_GPREL },
@@ -5172,7 +5172,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf64_alpha_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-hppa.c,v
retrieving revision 1.60
diff -u -p -r1.60 elf64-hppa.c
--- bfd/elf64-hppa.c	4 Jul 2005 01:53:40 -0000	1.60
+++ bfd/elf64-hppa.c	5 Jul 2005 03:37:08 -0000
@@ -2671,7 +2671,7 @@ elf64_hppa_elf_get_symbol_type (elf_sym,
     return type;
 }
 
-static struct bfd_elf_special_section const elf64_hppa_special_sections[] =
+static const struct bfd_elf_special_section elf64_hppa_special_sections[] =
 {
   { ".fini",    5, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".init",    5, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -2681,7 +2681,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf64_hppa_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.212
diff -u -p -r1.212 elf64-ppc.c
--- bfd/elf64-ppc.c	4 Jul 2005 01:53:40 -0000	1.212
+++ bfd/elf64-ppc.c	5 Jul 2005 03:37:14 -0000
@@ -2508,7 +2508,7 @@ ppc64_elf_merge_private_bfd_data (bfd *i
 
 /* Add extra PPC sections.  */
 
-static struct bfd_elf_special_section const ppc64_elf_special_sections[]=
+static const struct bfd_elf_special_section ppc64_elf_special_sections[]=
 {
   { ".plt",     4,  0, SHT_NOBITS,   0 },
   { ".sbss",    5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
@@ -2522,7 +2522,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 ppc64_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-sh64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-sh64.c,v
retrieving revision 1.59
diff -u -p -r1.59 elf64-sh64.c
--- bfd/elf64-sh64.c	4 Jul 2005 01:53:40 -0000	1.59
+++ bfd/elf64-sh64.c	5 Jul 2005 03:37:15 -0000
@@ -4068,7 +4068,7 @@ sh64_elf64_merge_symbol_attribute (struc
   return;
 }
 
-static struct bfd_elf_special_section const sh64_elf64_special_sections[]=
+static const struct bfd_elf_special_section sh64_elf64_special_sections[]=
 {
   { ".cranges", 8, 0, SHT_PROGBITS, 0 },
   { NULL,       0, 0, 0,            0 }
@@ -4077,7 +4077,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 sh64_elf64_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elfxx-ia64.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-ia64.c,v
retrieving revision 1.166
diff -u -p -r1.166 elfxx-ia64.c
--- bfd/elfxx-ia64.c	4 Jul 2005 01:53:40 -0000	1.166
+++ bfd/elfxx-ia64.c	5 Jul 2005 03:37:18 -0000
@@ -5050,7 +5050,7 @@ elfNN_ia64_reloc_type_class (rela)
     }
 }
 
-static struct bfd_elf_special_section const elfNN_ia64_special_sections[] =
+static const struct bfd_elf_special_section elfNN_ia64_special_sections[] =
 {
   { ".sbss",  5, -1, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE + SHF_IA_64_SHORT },
   { ".sdata", 6, -1, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_IA_64_SHORT },
@@ -5060,7 +5060,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elfNN_ia64_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.143
diff -u -p -r1.143 elfxx-mips.c
--- bfd/elfxx-mips.c	4 Jul 2005 01:53:40 -0000	1.143
+++ bfd/elfxx-mips.c	5 Jul 2005 03:37:24 -0000
@@ -9969,7 +9969,7 @@ _bfd_mips_elf_print_private_bfd_data (bf
   return TRUE;
 }
 
-struct bfd_elf_special_section const _bfd_mips_elf_special_sections[] =
+const struct bfd_elf_special_section _bfd_mips_elf_special_sections[] =
 {
   { ".lit4",   5,  0, SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL },
   { ".lit8",   5,  0, SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL },
@@ -9983,7 +9983,7 @@ struct bfd_elf_special_section const _bf
 const struct bfd_elf_special_section *
 _bfd_mips_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]