[Buildroot] [PATCH] package/binutils: fix loops relaxation in bare sections

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Apr 17 06:56:53 UTC 2019


On Thu, 11 Apr 2019 13:55:49 -0700
Max Filippov <jcmvbkbc at gmail.com> wrote:

> 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 at gmail.com>
> ---
>  ...as-put-.literal_position-at-section-start.patch | 96 ++++++++++++++++++++++
>  ...as-put-.literal_position-at-section-start.patch | 96 ++++++++++++++++++++++
>  2 files changed, 192 insertions(+)
>  create mode 100644 package/binutils/2.31.1/0017-xtensa-gas-put-.literal_position-at-section-start.patch
>  create mode 100644 package/binutils/2.32/0005-xtensa-gas-put-.literal_position-at-section-start.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list