Bug 12865 - binutils 2.29 fail for thumb2
Summary: binutils 2.29 fail for thumb2
Status: CLOSED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.4.3
Hardware: x86 arm
: Medium+ major
Target Milestone: 2.4.4
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-07-26 19:45 UTC by Maarten Brock
Modified: 2018-10-11 15:33 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Brock 2018-07-26 19:45:25 UTC
Hi,

Binutils 2.29 had changed the behavior of the adr macro which makes the linux kernel crash when compiled in Thumb mode for ARM. It also impacts the proper behavior of OpenSSL and other tools.

The behavior has been partially reverted by putting it behind an extra -mthumb-interwork command line option in binutils 2.31. See also the binutils 2.31 release notes:
http://lists.gnu.org/archive/html/info-gnu/2018-07/msg00005.html

IMHO binutils 2.29 must be considered broken.

Please migrate to binutils 2.31 ASAP.

Maarten
Comment 1 Armin Kuster 2018-08-03 01:40:40 UTC
If this issue is against a stable branch, we do not update the packages like the toolchain so we will not update to the latest binutils.

Can you provide a way of reproducing this issue?
Comment 3 Maarten Brock 2018-08-03 09:55:32 UTC
Yes, that is the fix I was referring to.

Can it be applied only to sumo or to rocko as well?

To reproduce you must build the kernel for ARM in Thumb mode. And then run it on an ARM of course.

Thanks for looking into this.

Maarten
Comment 4 Armin Kuster 2018-09-13 16:22:02 UTC
back ported change to sumo.
Comment 7 Armin Kuster 2018-10-11 15:33:26 UTC
fix merged