public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Andrey Petrov <petrov@netbsd.org>
To: binutils@sources.redhat.com
Subject: PATCH elf.c LP64 'comparsion is always false'
Date: Thu, 08 May 2003 20:11:00 -0000	[thread overview]
Message-ID: <20030508201028.GA19184@NetBSD.ORG> (raw)

This happens on LP64 platform (sparc64 in my case, but I think any).
The patch is trivial.

	Andrey


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;

             reply	other threads:[~2003-05-08 20:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-08 20:11 Andrey Petrov [this message]
2003-05-09 11:00 ` Alan Modra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030508201028.GA19184@NetBSD.ORG \
    --to=petrov@netbsd.org \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).