From 447a3519aff58559b1a1c2b6596f516126b50458 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 20 Apr 2015 16:27:53 -0700 Subject: [PATCH] ref-manual: Updates to ELF binary QA warning - review changes Applied some review edits from Paul. Fixes [YOCTO #7630] (From yocto-docs rev: 064fa763686f5ddaccba4a7201757f2a6fc8636c) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-qa-checks.xml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/documentation/ref-manual/ref-qa-checks.xml b/documentation/ref-manual/ref-qa-checks.xml index b4657e2ced..54cd4336eb 100644 --- a/documentation/ref-manual/ref-qa-checks.xml +++ b/documentation/ref-manual/ref-qa-checks.xml @@ -464,11 +464,18 @@ 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. - + + + + 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 + recipe: + + CFLAGS_append = " -fPIC " +