This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch/rfa] Fix build problem with IRIX compiler
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: binutils at sources dot redhat dot com
- Date: Sat, 21 Sep 2002 20:27:03 -0700
- Subject: Re: [patch/rfa] Fix build problem with IRIX compiler
- Organization: The NUXI BSD Group
- References: <3D5D598D.3020708@ges.redhat.com>
- Reply-to: obrien at FreeBSD dot org
I'd like to merge this to the binutils 2.13 branch. It also won't build
on FreeBSD with the same warning levels as 2.12 would. OK?
On Fri, Aug 16, 2002 at 03:59:09PM -0400, Andrew Cagney wrote:
> The attached fixes a BFD build problem with the IRIX compiler (PTR was
> ``void *'' which can't be incremented).
>
> Ok?
> Andrew
> Thu Aug 15 15:38:04 2002 Andrew Cagney <cagney@redhat.com>
>
> * elf.c (bfd_elf_get_elf_syms): Change type of `esym' to
> `bfd_byte'.
>
> Index: elf.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elf.c,v
> retrieving revision 1.158
> diff -u -r1.158 elf.c
> --- elf.c 30 Jul 2002 14:28:54 -0000 1.158
> +++ elf.c 16 Aug 2002 19:55:33 -0000
> @@ -371,7 +371,7 @@
> {
> Elf_Internal_Shdr *shndx_hdr;
> PTR alloc_ext;
> - const PTR esym;
> + const bfd_byte *esym;
> Elf_External_Sym_Shndx *alloc_extshndx;
> Elf_External_Sym_Shndx *shndx;
> Elf_Internal_Sym *isym;