gas: xtensa: fix comparison of trampoline chain symbols
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 7 Dec 2017 06:52:16 +0000 (22:52 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 8 Dec 2017 16:49:21 +0000 (08:49 -0800)
commit10af2a65c8891435d0d63411a3e694cc74c9447c
tree4e024390a684005c542bd794f8ce3a83a861afc3
parent1cd9a73b4280cb133b305ee31a0e87f114bd1be8
gas: xtensa: fix comparison of trampoline chain symbols

Don't use address where symbol gets resolved, as during section
relaxation symbols will slide, instead canonicalize symbols and check
that they are are the same.
This fixes a bug when a relaxed jump goes into the wrong trampoline.

gas/
2017-12-07  Max Filippov  <jcmvbkbc@gmail.com>

* config/tc-xtensa.c (xg_order_trampoline_chain): Replace
xg_order_trampoline_chain_entry call with check for
canonicalized symbol equality and offset equality.
gas/ChangeLog
gas/config/tc-xtensa.c