diff options
author | Cedric Landet <landet@adacore.com> | 2022-10-18 09:58:46 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-11-07 09:36:36 +0100 |
commit | 96c053335c7329ecd6c37f395b479994bc187d3a (patch) | |
tree | 780e12b4df19d7b1bb60ef44d9a8c43dac508a1d /gcc/ada/doc/gnat_ugn | |
parent | bcb3f09ec6cb9b2c6e58243d05b5a0fc33e909f1 (diff) | |
download | gcc-96c053335c7329ecd6c37f395b479994bc187d3a.zip gcc-96c053335c7329ecd6c37f395b479994bc187d3a.tar.gz gcc-96c053335c7329ecd6c37f395b479994bc187d3a.tar.bz2 |
ada: Document that gprof won't work on windows with PIE.
Document that gprof won't work on windows with PIE and -no-pie must be
used.
gcc/ada/
* doc/gnat_ugn/gnat_and_program_execution.rst: Mention the needed
-no-pie for windows to use gprof.
* gnat_ugn.texi: Regenerate.
Diffstat (limited to 'gcc/ada/doc/gnat_ugn')
-rw-r--r-- | gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst b/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst index e827d1f..c239c36 100644 --- a/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst +++ b/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst @@ -1252,8 +1252,8 @@ most often, and are therefore the most time-consuming. better handle Ada programs and multitasking. It is currently supported on the following platforms -* linux x86/x86_64 -* windows x86 +* Linux x86/x86_64 +* Windows x86/x86_64 (without PIE support) In order to profile a program using ``gprof``, several steps are needed: @@ -1291,6 +1291,10 @@ Note that only the objects that were compiled with the ``-pg`` switch will be profiled; if you need to profile your whole project, use the ``-f`` gnatmake switch to force full recompilation. +Note that on Windows, gprof does not support PIE. The ``-no-pie`` switch +should be added to the linker flags to disable this feature. + + .. _Program_execution: |