binutils: fix .init/.fini literals moving in xtensa gas
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 17 Feb 2016 21:50:13 +0000 (00:50 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 18 Feb 2016 14:07:43 +0000 (15:07 +0100)
commitff9782423624759c38fbefc35ccdd5070cdee43d
treec2f17109c0effca30fd19bbd6494c310d71cc34f
parentc1b47a9cbeac99fb35705939165a5bb1fa809453
binutils: fix .init/.fini literals moving in xtensa gas

Despite the documentation and the comment in xtensa_move_literals, in
the presence of --text-section-literals and --auto-litpools literals are
moved from the separate literal sections into .init and .fini, because
the check in the xtensa_move_literals is incorrect.

This fixes build errors seen with projects that have .init/.fini and use
text-section-literals.

Backported from: 4111950f363221c4641dc2f33bea61cc94f34906
Reported-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/binutils/2.23.2/915-xtensa-fix-.init-.fini-literals-moving.patch [new file with mode: 0644]
package/binutils/2.24/915-xtensa-fix-.init-.fini-literals-moving.patch [new file with mode: 0644]
package/binutils/2.25.1/915-xtensa-fix-.init-.fini-literals-moving.patch [new file with mode: 0644]