mirror of https://github.com/mkerrisk/man-pages
backtrace.3: Minor tweaks to Stefan Puiu's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ca5d5169cb
commit
454f90d7b7
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue