<?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>10168</bug_id>
          
          <creation_ts>2016-08-20 00:56:58 +0000</creation_ts>
          <short_desc>On-target binutils produces non-running code when linking with &quot;-Wl,-z,nocopyreloc&quot; on ARM or PPC</short_desc>
          <delta_ts>2022-02-11 20:34:36 +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.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>65369</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2016-08-20 00:56:58 +0000</bug_when>
    <thetext>The prelink test suite has two tests (reloc8 and reloc9) that attempt to link an application with &quot;-Wl,-z,nocopyreloc&quot;.  This worked through &quot;krogoth&quot; but no longer works on master.

The easiest way to reproduce the problem is to build a system using the default &apos;master&apos; configuration, adding:

IMAGE_INSTALL_append = &quot; packagegroup-core-buildessential ssh sshd binutils-staticdev elfutils gdb file git&quot;
EXTRA_IMAGE_FEATURES_append = &quot; dev-pkgs&quot;
IMAGE_ROOTFS_SIZE = &quot;524288&quot;

then build using:  MACHINE=qemuarm bitbake core-image-base

Boot into the system, and clone (using git) &quot;git://git.yoctoproject.org/prelink-cross&quot;

The run the following:

autoreconf -if
./configure
make
make check

The reloc8 and reloc9 test used to pass, and no longer do.  (It is expected there will be two failures, the preload1 and quick2 tests.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91534</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-09-23 15:24:07 +0000</bug_when>
    <thetext>We should retest to see if this is still a problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92544</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-02-11 20:34:36 +0000</bug_when>
    <thetext>Prelink support has been dropped:
https://git.openembedded.org/openembedded-core/log/?qt=range&amp;q=23c0be78106f1d1e2bb9c724174a1bb8c56c2469</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>