gas: xtensa: extract jump assembling for trampolines
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 9 Nov 2017 22:51:18 +0000 (14:51 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 27 Nov 2017 23:11:38 +0000 (15:11 -0800)
commitfec68fb168d580c188358347f3834072a8960ddc
tree475757da49fe08c0e11f3df2f7a4cba4fe74a87c
parent120bc8b8b91cba4a8d4092ea0fb3d76bcbe98712
gas: xtensa: extract jump assembling for trampolines

init_trampoline_frag, add_jump_to_trampoline and xg_relax_trampoline add
a jump to the end of a trampoline frag. Extract it into a separate
funciton and use it in all these places. No functional changes.

gas/
2017-11-27  Max Filippov  <jcmvbkbc@gmail.com>

* config/tc-xtensa.c (xg_append_jump): New function.
(xg_relax_trampoline, init_trampoline_frag)
(add_jump_to_trampoline): Replace trampoline jump assembling
code with a call to xg_append_jump.
gas/ChangeLog
gas/config/tc-xtensa.c