DWARF_SET_RELOC_APPLICATION(3)
DWARF_SET_RELOC_APPLICATION(3) β Library Functions Manual β bestie, let's get into it π«Ά
β¨ NAME β¨
dwarf_set_reloc_application β set a library-wide relocation flag π
π¦ LIBRARY π¦
DWARF Access Library (libdwarf, -ldwarf) π
π SYNOPSIS π
#include <libdwarf.h>
int
dwarf_set_reloc_application(int apply);
π DESCRIPTION π
okay so dwarf_set_reloc_application() is literally the function that lets applications specify how relocation information is handled by the DWARF(3) library. main character energy for relocation settings β¨
- If the argument
applyholds a non-zero value, the library will process all the relevant".rel"and".rela"relocation sections, and will apply the relocation records found to their corresponding DWARF sections. slay π - If the argument
applyis zero, the library will not attempt to apply any relocations. not me skipping the relocations π
The default behaviour of the library is to process relocation records. periodt π₯
π§ NOTES π§
dwarf_set_reloc_application() should be called before initialising a dwarf debugging context, i.e., it should be called by the application before calling either of the functions dwarf_init(3) or dwarf_elf_init(3). like, do it first bestie β timing is everything π
π RETURN VALUES π
dwarf_set_reloc_application() returns the previous value of the library-wide relocation application flag. so you get the old setting back, iconic π
πΈ ERRORS πΈ
dwarf_set_reloc_application() does not return an error. no error era, we love to see it π
β SEE ALSO β
dwarf(3), dwarf_elf_init(3), dwarf_init(3) β go read those too, iykyk π¦
Source/version: Debian Β· Date: February 11, 2015 Β· Page: DWARF_SET_RELOC_APPLICATION(3) π bye bestie π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: libdwarf 15.0.0
- Copyright (c) 2011 Kai Wang
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms