Bug 12865

Summary: binutils 2.29 fail for thumb2
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Maarten Brock <m.brock>
Component: devtools / tool chainAssignee: Armin Kuster <akuster>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: 2.4.3   
Target Milestone: 2.4.4   
Hardware: x86   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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