Wind River Support Network

HomeDefectsLIN6-6507
Not to be fixed

LIN6-6507 : WARNING: QA Issue: ELF binary mpatrol/usr/lib/libmpatrolmt-1.5.1.so has relocations in .text

Created: Nov 25, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 6.0
Severity: Low
Applicable for: Wind River Linux 6
Component/s: Workbench Integration

Description

A build with mpatrol included a warning as follows:

WARNING: QA Issue: ELF binary '/buildarea1/build/11241255-host_build_platprj-qemubsps_sanity_LX28/combo7-qemuppc-standard-glibc-std/bitbake_build/tmp/work/ppc7400-wrs-linux/mpatrol/1.5.1-r2.0/packages-split/mpatrol/usr/lib/libmpatrolmt-1.5.1.so' has relocations in .text
WARNING: QA Issue: ELF binary '/buildarea1/build/11241255-host_build_platprj-qemubsps_sanity_LX28/combo7-qemuppc-standard-glibc-std/bitbake_build/tmp/work/ppc7400-wrs-linux/mpatrol/1.5.1-r2.0/packages-split/mpatrol/usr/lib/libmpatrolmt.so' has relocations in .text
WARNING: QA Issue: ELF binary '/buildarea1/build/11241255-host_build_platprj-qemubsps_sanity_LX28/combo7-qemuppc-standard-glibc-std/bitbake_build/tmp/work/ppc7400-wrs-linux/mpatrol/1.5.1-r2.0/packages-split/mpatrol/usr/lib/libmpatrol-1.5.1.so' has relocations in .text
WARNING: QA Issue: ELF binary '/buildarea1/build/11241255-host_build_platprj-qemubsps_sanity_LX28/combo7-qemuppc-standard-glibc-std/bitbake_build/tmp/work/ppc7400-wrs-linux/mpatrol/1.5.1-r2.0/packages-split/mpatrol/usr/lib/libmpatrol.so' has relocations in .text

Workaround

This warning can be ignored.   From the yocto website  http://comments.gmane.org/gmane.comp.handhelds.openembedded.core/33590,
> Re: What do these warnings mean?
> It means the linker has to perform relocations on the .text segment at
> runtime. This slows down loads and means more memory usage if two
> applications use the library since the kernel can't share the mappings.
> It will work its just inefficient.

Mpatrol's instrumentation of any application already introduces an overhead that will be much larger than the loader inefficiencies. 

Steps to Reproduce

 1./buildarea1/product/WRL60/wrlinux-6/wrlinux/configure --enable-board=qemuppc --enable-kernel=standard --enable-rootfs=glibc-std --with-template=feature/debug,feature/demo,feature/gdb,feature/analysis,feature/boottime,feature/kernel-debug,feature/code_coverage,feature/oprofile,feature/system-stats,feature/valgrind,feature/wrsv-ltt --enable-test=yes --enable-build=profiling --enable-parallel-pkgbuilds=8 --enable-jobs=8 --with-sstate-dir=/buildarea1/build/SSTATE_CACHE --with-ccache-dir=/buildarea1/build/CCACHE_CACHE --enable-ccache=yes
2. make all 
Live chat
Online