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