DWARF_SET_RELOC_APPLICATION(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

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 apply holds 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 apply is 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