package/binutils: fix loops relaxation in bare sections
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 11 Apr 2019 20:55:49 +0000 (13:55 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 17 Apr 2019 06:56:42 +0000 (08:56 +0200)
commitde1d1577d727d41bf26eca46e6f4c659062aa105
tree6c9052217128eab562b949ec761bba58994f1d1c
parent1109f498e9983537d3d04858341b301d8b44e99c
package/binutils: fix loops relaxation in bare sections

The commit 197b5f9d1c23 ("package/binutils: fix loops relaxation in
xtensa gas") changed the way loop opcodes are relaxed resulting in build
failures in hand-made assembly code that has loops in sections without
.literal_position pseudo op or equivalent construct. This e.g. breaks
xtensa linux kernel build.

Fix that by adding literal position to the beginning of every section.

Fixes: 197b5f9d1c23 ("package/binutils: fix loops relaxation in xtensa
gas")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/binutils/2.31.1/0017-xtensa-gas-put-.literal_position-at-section-start.patch [new file with mode: 0644]
package/binutils/2.32/0005-xtensa-gas-put-.literal_position-at-section-start.patch [new file with mode: 0644]