backtrace.3: Minor tweaks to Stefan Puiu's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-09-29 20:36:55 +02:00
parent ca5d5169cb
commit 454f90d7b7
1 changed files with 9 additions and 6 deletions

View File

@ -179,12 +179,15 @@ and
.BR backtrace_symbols_fd ()
don't call
.BR malloc ()
explicitly, but they are part of libgcc, which gets loaded dynamically
when first used. Dynamic loading usually triggers a call to
.BR malloc ().
If you need certain calls to the 2 functions to not allocate memory
(in signal handlers, for example), you need to make sure libgcc is
loaded beforehand.
explicitly, but they are part of
.IR libgcc ,
which gets loaded dynamically when first used.
Dynamic loading usually triggers a call to
.BR malloc (3).
If you need certain calls to these two functions to not allocate memory
(in signal handlers, for example), you need to make sure
.I libgcc
is loaded beforehand.
.PP
The symbol names may be unavailable without the use of special linker
options.