ref-manual: Updates to ELF binary QA warning

Fixes [YOCTO #7630]

Apparently the text relocation being done here can cause runtime
performance issues.  I documented a potential work-around for the
issue and provided a cross-reference link to an external site for
more general information about text relocation at runtime.

Reported-by: Laszlo Papp <lpapp@kde.org>
(From yocto-docs rev: f7ba2fd03ee40c5dbe6a07a24a63d9147857ed78)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark 2015-04-20 07:55:41 -07:00 committed by Richard Purdie
parent f06cd40f08
commit 2eb48c227e
2 changed files with 15 additions and 1 deletions

View File

@ -1697,7 +1697,11 @@
<listitem><para><emphasis><filename>textrel:</filename></emphasis>
Checks for ELF binaries that contain relocations in their
<filename>.text</filename> sections, which can result in a
performance impact at runtime.</para></listitem>
performance impact at runtime.
See the explanation for the
<link linkend='qa-issue-textrel'><filename>ELF binary</filename></link>
message for more information regarding runtime performance issues.
</para></listitem>
<listitem><para><emphasis><filename>unsafe-references-in-binaries:</filename></emphasis>
Reports when a binary installed in
<filename>${base_libdir}</filename>,

View File

@ -464,6 +464,16 @@ can be found then it should be implemented. I can't find one at the moment.
<filename>.text</filename> sections.
This situation can result in a performance impact
at runtime.
<note><title>Tip</title>
If you do experience runtime performance issues,
you could try assigning "-fPIC/-fpic" to
<filename>gcc</filename>.
</note>
</para>
<para>
For more information on text relocations at runtime, see
<ulink url='http://www.akkadia.org/drepper/textrelocs.html'></ulink>.
</para>
<para>