This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Cast signed mismatch in bfd/elfxx-mips.c
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Wed, 7 Aug 2002 06:40:50 +0200
- Subject: [PATCH] Cast signed mismatch in bfd/elfxx-mips.c
Hi All,
I committed this patch as obvious.
Thiemo
2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/bfd/ChangeLog
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Cast signedness
mismatch.
diff -BurpNX /bigdisk/src/gcc-exclude source-orig/bfd/elfxx-mips.c source/bfd/elfxx-mips.c
--- source-orig/bfd/elfxx-mips.c Fri Aug 2 01:48:38 2002
+++ source/bfd/elfxx-mips.c Mon Aug 5 08:39:34 2002
@@ -2932,7 +2935,8 @@ mips_elf_create_dynamic_relocation (outp
/* The relocation is always an REL32 relocation because we don't
know where the shared library will wind up at load-time. */
- outrel[0].r_info = ELF_R_INFO (output_bfd, indx, R_MIPS_REL32);
+ outrel[0].r_info = ELF_R_INFO (output_bfd, (unsigned long) indx,
+ R_MIPS_REL32);
/* Adjust the output offset of the relocation to reference the
correct location in the output file. */