PATCH: Prevent mn10300 assembler from relaxing calls to weak symbols
Nick Clifton
nickc@redhat.com
Mon Feb 18 10:03:00 GMT 2008
Hi Guys,
I am going to apply the attached patch which fixes a bug in the
mn10300 assembler. Prior to the patch the mn10300 assembler relaxation
code would decide to relax a call to a defined, weak symbol. This is a
bad idea since of course the symbol can be overridden during linking,
possibly invalidating the relaxation.
Cheers
Nick
gas/ChangeLog
2008-02-18 Nick Clifton <nickc@redhat.com>
* config/tc-mn10300.c (has_known_symbol_location): New function.
Do not regard weak symbols as having a known location.
(md_estimate_size_before_relax): Use new function.
(md_pcrel_from): Do not compute a pcrel against a weak symbol.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc-mn10300.c.patch
Type: text/x-patch
Size: 2754 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20080218/18b40111/attachment.bin>
More information about the Binutils
mailing list