From 4a90b6b0d9aabef42da231ac9181829ba42ad7da Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 20 Apr 2015 07:55:41 -0700 Subject: 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: f7f611a6668b6cd2ee3928ad44c72dbbe5307c38) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 6 +++++- documentation/ref-manual/ref-qa-checks.xml | 7 ++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'documentation') 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 54cd4336eb..7eaeb7fa04 100644 --- a/documentation/ref-manual/ref-qa-checks.xml +++ b/documentation/ref-manual/ref-qa-checks.xml @@ -467,8 +467,8 @@ can be found then it should be implemented. I can't find one at the moment. - Typically, the way to solve this performance issue is to - add "-fPIC" to the compiler command-line options. + Typically, the way to solve this performance issue is + to add "-fPIC" to the compiler command-line options. For example, given software that reads CFLAGS when you build it, you can add the following to your @@ -476,9 +476,6 @@ can be found then it should be implemented. I can't find one at the moment. CFLAGS_append = " -fPIC " - - - For more information on text relocations at runtime, see . -- cgit v1.2.3-54-g00ecf