* [PATCH] Fix MIPS16 stub calling relocations
@ 2006-06-09 14:13 Thiemo Seufer
0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2006-06-09 14:13 UTC (permalink / raw)
To: binutils
Hello All,
I committed the appended patch, it makes sure a (32bit) call stub to
MIPS16 code is called with the proper relocation type.
Thiemo
2006-06-09 David Ung <davidu@mips.com>
* bfd/elfxx-mips.c (mips_elf_calculate_relocation): Fix mode for stub
calling relocations.
Index: bfd/elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.170
diff -u -p -r1.170 elfxx-mips.c
--- bfd/elfxx-mips.c 8 Jun 2006 23:51:25 -0000 1.170
+++ bfd/elfxx-mips.c 9 Jun 2006 12:55:16 -0000
@@ -4074,6 +4074,8 @@ mips_elf_calculate_relocation (bfd *abfd
}
symbol = sec->output_section->vma + sec->output_offset;
+ /* The target is 16-bit, but the stub isn't. */
+ target_is_16_bit_code_p = FALSE;
}
/* If this is a 16-bit call to a 32- or 64-bit function with a stub, we
need to redirect the call to the stub. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-09 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09 14:13 [PATCH] Fix MIPS16 stub calling relocations 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).