This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] sh/sh64: Fix gotplt assertion failure


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.

Attachment: gotplt-patch.txt
Description: gotplt-patch.txt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]