[Xtensa] change relaxation of calls to weak symbols
Bob Wilson
bwilson@tensilica.com
Wed Dec 12 21:26:00 GMT 2007
I noticed yesterday that the Xtensa port of GAS has been relaxing all calls to
weak symbols, even when the --longcalls option is disabled. This seems wrong to
me. The assembler doesn't know the final address of a weak symbol, but that is
no different than a call to a different section. This patch changes GAS to
handle both of those cases (weak symbol and different section) in the same way.
Tested with an xtensa-elf build and committed.
2007-12-12 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (xg_symbolic_immeds_fit): Do not relax calls to
weak symbols if longcalls are disabled.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gas-weak-call.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20071212/3074facd/attachment.ksh>
More information about the Binutils
mailing list