This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH elf.c LP64 'comparsion is always false'
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Andrey Petrov <petrov at netbsd dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 9 May 2003 20:29:45 +0930
- Subject: Re: PATCH elf.c LP64 'comparsion is always false'
- References: <20030508201028.GA19184@NetBSD.ORG>
On Thu, May 08, 2003 at 08:10:28PM +0000, Andrey Petrov wrote:
> Index: elf.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elf.c,v
> retrieving revision 1.182
> diff -u -p -r1.182 elf.c
> --- elf.c 24 Apr 2003 17:19:37 -0000 1.182
> +++ elf.c 8 May 2003 19:03:22 -0000
> @@ -2365,9 +2365,9 @@ elf_fake_sections (abfd, asect, failedpt
>
> this_hdr = &elf_section_data (asect)->this_hdr;
>
> - this_hdr->sh_name = (unsigned long) _bfd_elf_strtab_add (elf_shstrtab (abfd),
> + this_hdr->sh_name = (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
> asect->name, FALSE);
> - if (this_hdr->sh_name == (unsigned long) -1)
> + if (this_hdr->sh_name == (unsigned int) -1)
> {
> *failedptr = TRUE;
> return;
Applied. Thanks.
--
Alan Modra
IBM OzLabs - Linux Technology Centre