<?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>6224</bug_id>
          
          <creation_ts>2014-04-24 10:52:30 +0000</creation_ts>
          <short_desc>Binaries sometimes contain empty TEXTREL segment, causing QA warnings</short_desc>
          <delta_ts>2014-07-30 11:31:25 +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>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6104</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>42971</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-04-24 10:52:30 +0000</bug_when>
    <thetext>Sometimes (haven&apos;t been able to identify the cause) binaries are built with relocatable text segments that are in fact empty.  This causes the QA warning to kick in:

WARNING: QA Issue: ELF binary &apos;/data/oc/work/i586-oe-linux/flex/2.5.38-r0/packages-split/flex-ptest/usr/lib/flex/ptest/test-c++-multiple-scanners/test-c++-multiple-scanners&apos; has relocations in .text
WARNING: QA Issue: ELF binary &apos;/data/oc/work/i586-oe-linux/util-linux/2.24.1-r0/packages-split/util-linux/bin/more.util-linux&apos; has relocations in .text
WARNING: QA Issue: ELF binary &apos;/data/oc/work/i586-oe-linux/coreutils/8.22-r0/packages-split/coreutils/bin/sync.coreutils&apos; has relocations in .text

$ objdump  -p /data/oc/work/i586-oe-linux/coreutils/8.22-r0/packages-split/coreutils/bin/sync.coreutils|grep TEXTREL
  TEXTREL              0x00000000

The segment is present, but empty.  scanelf also agrees this isn&apos;t right:

$ scanelf -qT /data/oc/work/i586-oe-linux/coreutils/8.22-r0/packages-split/coreutils/bin/sync.coreutils
scanelf: scanelf_file_textrels(): ELF /data/oc/work/i586-oe-linux/coreutils/8.22-r0/packages-split/coreutils/bin/sync.coreutils has TEXTREL markings but doesnt appear to have any real TEXTREL&apos;s !?


Would the presence of relocatable text segments cause a performance hit on loading even if empty (so we should fix gcc), or does this have no performance hit so we should check for empty segments in the QA check?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42976</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-04-24 15:01:07 +0000</bug_when>
    <thetext>Duplicate of 6104 although it is useful to have the extra info.

*** This bug has been marked as a duplicate of bug 6104 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44829</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-07-30 11:31:25 +0000</bug_when>
    <thetext>verified as per above comments</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>