This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

PATCH: Fixing build problem in bfd


Hallo,

There is a build failure in bfd. The type reloc_howto_type, which is 
allready defined as const, was declared as const a second time. This leads 
to a warning and a build-failure.
This patch should solve this problem.

Regards,
i.A. Kai Tietz

ChangeLog:

2007-03-07  Kai Tietz   <kai.tietz@onevision.com>

        * reloc.c: (bfd_generic_get_relocated_section_contents) Too much 
const for type reloc_howto_type


Patch:
Index: bfd/reloc.c
===================================================================
RCS file: /cvs/src/src/bfd/reloc.c,v
retrieving revision 1.162
diff -b -u -r1.162 reloc.c
--- reloc.c     7 Mar 2007 08:54:34 -0000       1.162
+++ reloc.c     7 Mar 2007 11:46:03 -0000
@@ -5155,7 +5155,7 @@
          if (symbol->section && elf_discarded_section (symbol->section))
            {
              bfd_byte *p;
-             static const reloc_howto_type none_howto
+             static reloc_howto_type none_howto
                = HOWTO (0, 0, 0, 0, FALSE, 0, complain_overflow_dont, 
NULL
                         "unused", FALSE, 0, 0, FALSE);


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