Many object file formats allow tools to create object files with custom sections containing any arbitrary data. For any such object file format, stabs can be embedded in special sections. This is how stabs are used with ELF and SOM, and aside from ECOFF and XCOFF, is how stabs are used with COFF.
|• Stab Section Basics:||How to embed stabs in sections|
|• ELF Linker Relocation:||Sun ELF hacks|