* [PATCH] MIPS bfd: Tighten next relocation test
@ 2006-07-25 9:11 Thiemo Seufer
0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2006-07-25 9:11 UTC (permalink / raw)
To: binutils
Hello All,
I applied the appended patch, it tightens the test for the next related
relocation by checking also the symbol index.
Thiemo
2006-07-25 Thiemo Seufer <ths@networkno.de>
* elfxx-mips.c (mips_elf_next_relocation): Tighten check to test
also for same symbol.
Index: bfd/elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.175
diff -u -p -r1.175 elfxx-mips.c
--- bfd/elfxx-mips.c 18 Jul 2006 08:56:44 -0000 1.175
+++ bfd/elfxx-mips.c 24 Jul 2006 11:21:01 -0000
@@ -3583,9 +3583,12 @@ mips_elf_next_relocation (bfd *abfd ATTR
const Elf_Internal_Rela *relocation,
const Elf_Internal_Rela *relend)
{
+ unsigned long r_symndx = ELF_R_SYM (abfd, relocation->r_info);
+
while (relocation < relend)
{
- if (ELF_R_TYPE (abfd, relocation->r_info) == r_type)
+ if (ELF_R_TYPE (abfd, relocation->r_info) == r_type
+ && ELF_R_SYM (abfd, relocation->r_info) == r_symndx)
return relocation;
++relocation;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-25 9:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-25 9:11 [PATCH] MIPS bfd: Tighten next relocation test Thiemo Seufer
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).