Dimitry Andric cce0f33cda When libexec/rtld-elf/rtld.c is compiled with clang, the r_debug_state()
function (a hook necessary for gdb support), is inlined, but since the
function contains no code, no calls to it are generated.  When gdb is
debugging a dynamically linked program, this causes backtraces to be
corrupted.

Fix it by marking the function __noinline, and inserting an empty asm
statement, that pretends to clobber memory.  This forces the compiler to
emit calls to r_debug_state() throughout rtld.c.

Approved by:	re (kib)
2011-09-03 11:41:00 +00:00
..
2010-12-20 08:29:54 +00:00
2010-12-06 10:24:06 +00:00
2010-12-20 08:37:26 +00:00
2010-12-20 08:44:08 +00:00
2010-02-26 09:41:16 +00:00
2010-12-19 13:05:17 +00:00
2009-12-03 15:48:24 +00:00