<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12865</bug_id>
          
          <creation_ts>2018-07-26 19:45:25 +0000</creation_ts>
          <short_desc>binutils 2.29 fail for thumb2</short_desc>
          <delta_ts>2018-10-11 15:33:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.4.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.4.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maarten Brock">m.brock</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81192</commentid>
    <comment_count>0</comment_count>
    <who name="Maarten Brock">m.brock</who>
    <bug_when>2018-07-26 19:45:25 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81236</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-03 01:40:40 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81237</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-03 01:53:18 +0000</bug_when>
    <thetext>upstream fix:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=fc6141f097056f830a412afebed8d81a9d72b696;hp=c6643fcc058d6b4aebca75818fbbb705837a9fa3

maybe this is all we need?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81238</commentid>
    <comment_count>3</comment_count>
    <who name="Maarten Brock">m.brock</who>
    <bug_when>2018-08-03 09:55:32 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81554</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-09-13 16:22:02 +0000</bug_when>
    <thetext>back ported change to sumo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81612</commentid>
    <comment_count>5</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-09-24 18:20:37 +0000</bug_when>
    <thetext>in stable/sumo-next

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=stable/sumo-next&amp;id=23f8b96fa36b9f4edc04148cfec705d09139cf5f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81821</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-10-11 15:31:20 +0000</bug_when>
    <thetext>change in sumo
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=sumo&amp;id=8cdabe1f6fa908489e6daad912fadae69adf78c4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81823</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-10-11 15:33:26 +0000</bug_when>
    <thetext>fix merged</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>