aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-06-17 15:48:25 +0000
committerJakub Jelinek <jakub@redhat.com>2005-06-17 15:48:25 +0000
commitaa2ca951cf326a6b899a0d009532d88106c08b6b (patch)
tree214353a95664dc2e91f085f905080149240cf8b3 /bfd/elf.c
parenta50b216054a45bff721b7e15d987684e5c380625 (diff)
downloadgdb-aa2ca951cf326a6b899a0d009532d88106c08b6b.zip
gdb-aa2ca951cf326a6b899a0d009532d88106c08b6b.tar.gz
gdb-aa2ca951cf326a6b899a0d009532d88106c08b6b.tar.bz2
* elf.c (bfd_section_from_shdr): Kill bogus warning.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index d301a9e..590ce35 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1948,7 +1948,8 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
Elf_Internal_Shdr *hdr2;
unsigned int num_sec = elf_numsections (abfd);
- if (hdr->sh_entsize != (hdr->sh_type == SHT_REL
+ if (hdr->sh_entsize
+ != (bfd_size_type) (hdr->sh_type == SHT_REL
? bed->s->sizeof_rel : bed->s->sizeof_rela))
return FALSE;