From 2eb48c227e673bd1c06829c24e2043a164dd0124 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 20 Apr 2015 07:55:41 -0700 Subject: [PATCH] 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 (From yocto-docs rev: f7ba2fd03ee40c5dbe6a07a24a63d9147857ed78) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 6 +++++- documentation/ref-manual/ref-qa-checks.xml | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index a000b2ae28..3889473b6e 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -1697,7 +1697,11 @@ textrel: Checks for ELF binaries that contain relocations in their .text sections, which can result in a - performance impact at runtime. + performance impact at runtime. + See the explanation for the + ELF binary + message for more information regarding runtime performance issues. + unsafe-references-in-binaries: Reports when a binary installed in ${base_libdir}, diff --git a/documentation/ref-manual/ref-qa-checks.xml b/documentation/ref-manual/ref-qa-checks.xml index 43cb26db4c..b4657e2ced 100644 --- a/documentation/ref-manual/ref-qa-checks.xml +++ b/documentation/ref-manual/ref-qa-checks.xml @@ -464,6 +464,16 @@ can be found then it should be implemented. I can't find one at the moment. .text sections. This situation can result in a performance impact at runtime. + Tip + If you do experience runtime performance issues, + you could try assigning "-fPIC/-fpic" to + gcc. + + + + + For more information on text relocations at runtime, see + .