template <class AbiTraits = LocalAbiTraits>

struct RDebug

Defined at line 46 of file ../../src/lib/elfldltl/include/lib/elfldltl/svr4-abi.h

This is the traditional `struct r_debug` that SVR4 and other systems declare

in

<link

.h>. In the original scheme, the DT_DEBUG element in the PT_DYNAMIC

(.dynamic) data would be updated to point to this in memory so that a

debugger could examine that in memory to find it. However, debuggers also

began looking for known symbol names like `_r_debug` in the dynamic linker

to find this, so the de facto expectation is that it has that symbol. The

scheme of modifying DT_DEBUG is not feasible when .dynamic is read-only, so

it's not used on systems like Fuchsia with `-z rodynamic` on by default.

Public Members

Word version
AbiPtr<const LinkMap<AbiTraits>, Elf<Class, Data>, AbiTraits> map
Addr brk
EnumField<RDebugState, kSwap> state
Addr ldbase