Bug 11128

Summary: textrel insanity false positive
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, raj.khem
Version: 2.2   
Target Milestone: 4.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2017-03-06 15:08:56 UTC
When I build pulseaudio:

WARNING: pulseaudio-10.0-r0 do_package_qa: QA Issue: ELF binary '/data/poky-master/tmp/work/corei7-64-poky-linux/pulseaudio/10.0-r0/packages-split/pulseaudio-server/usr/bin/pulseaudio' has relocations in .text [textrel]

But if I run scanelf on the binary:

scanelf: scanelf_file_textrels(): ELF pulseaudio has TEXTREL markings but doesnt appear to have any real TEXTREL's !?
Comment 1 Ross Burton 2017-03-06 15:13:47 UTC
Dynamic Section:
...
  TEXTREL              0x0000000000000000

If the value is a size or offset, then we can likely just skip sections which have 0 here.
Comment 2 Ross Burton 2017-04-04 12:09:25 UTC
Maybe.  Need to research *what* that means.
Comment 3 Khem Raj 2017-07-06 21:52:52 UTC
This will be fixed with latest hardening fixes 

https://patchwork.openembedded.org/series/7606/
Comment 4 Ross Burton 2019-10-24 22:59:55 UTC
That series merged and I haven't seen this warning since.