[Patch] sh/sh64: Fix gotplt assertion failure

Clarke, Stephen stephen.clarke@superh.com
Mon Sep 16 19:16:00 GMT 2002


This is a fix for a problem with the handling of
SH_GOTPLTxxx relocations.

The problem is with symbols that are forced local after
the SH_GOTPLTxxx reloc handling in sh_elf_check_relocs has
decided to use the plt... this leads to an assertion failure.

The fix detects this situation in allocate_dynrelocs, and
changes the plt references to be got references.

Ld test included.  Regression tested on sh64-elf/sh64-sim
and sh-elf/sh-hms-sim.

Steve.
--
Stephen Clarke, Principal Engineer, SuperH Inc.
Phone:1-408-273-3146, Fax:1-408-273-3199, mailto:Stephen.Clarke@superh.com
Mail:  SuperH Inc., 405 River Oaks Pkwy, San Jose, CA 95134, USA.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gotplt-patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20020916/57ffaac1/attachment.txt>


More information about the Binutils mailing list