diff options
| author | Manuel Traut <manut@linutronix.de> | 2019-01-14 21:24:35 +0100 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-01-28 20:00:26 +0106 |
| commit | 35cff9185b355d7a471b5164b2235409e584dbfb (patch) | |
| tree | 905e26baf253e3922d6213dce779935cdc9a8099 | |
| parent | 0f2bdbda59d69191eb80ee223bbbbf2f8061e891 (diff) | |
profiling - gprof: use no PIE compiler and linker option
PIE is enabled in the gcc of Debian/stretch by default.
However the gprof in stretch isn't able to produce any
output if PIE is enabled. This is also documented here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854704
Disable PIE for the moment to get some gprof output.
However i'm not able to find out how to disable PIE if
compiling and linking is done in two steps. Therefore this
is just removed.
Signed-off-by: Manuel Traut <manut@linutronix.de>
| -rw-r--r-- | application-devel/profiling/pres_app_profiling_en.tex | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/application-devel/profiling/pres_app_profiling_en.tex b/application-devel/profiling/pres_app_profiling_en.tex index 259d176..aa26bbe 100644 --- a/application-devel/profiling/pres_app_profiling_en.tex +++ b/application-devel/profiling/pres_app_profiling_en.tex @@ -14,14 +14,7 @@ \frametitle{Using gprof} Compile AND link with profile information: \begin{verbatim} -# Compile and link in one go - -gcc -Wall -pg -o gprof_test gprof_test.c - -# or - -gcc -Wall -pg -o gprof_test.o gprof_test.c -gcc -Wall -pg -o gprof_test gprof_test.o +gcc -Wall -no-pie -fno-pie -pg -o gprof_test gprof_test.c \end{verbatim} \end{frame} |
