DWARF_ATTROFFSET(3)
π dwarf_attroffset β the libdwarf bestie you needed π
okay so welcome to the DWARF_ATTROFFSET(3) page, bestie β¨ this one lives in the DWARF Access Library and itβs lowkey here to hand you an offset. iconic behavior, no cap π
πΈ NAME πΈ
dwarf_attroffset β retrieve the section-relative offset of an attribute descriptor π¦
π LIBRARY π
DWARF Access Library (libdwarf, -ldwarf) π
β¨ SYNOPSIS β¨
#include <libdwarf.h>
int
dwarf_attroffset(Dwarf_Attribute at, Dwarf_Off *ret_off,
Dwarf_Error *err);
π DESCRIPTION π
Function dwarf_attroffset() retrieves the section-relative offset of the attribute descriptor referenced by argument at. literally its whole job π
Argument ret_off should point to a location that is to hold the returned section-relative offset. If argument err is non-NULL, it is used to return an error descriptor in case of an error. so yes, give it somewhere cute to put the offset π«Ά
β RETURN VALUES β
On success, function dwarf_attroffset() returns DW_DLV_OK. slay β
In case of an error, it returns DW_DLV_ERROR and sets argument err. sad girl hours but at least you get the error descriptor π
π COMPATIBILITY π
This function is an extension to the DWARF(3) API. iykyk π§
π ERRORS π
The dwarf_attroffset() function may fail with the following errors:
[DW_DLE_ARGUMENT]β Either of the argumentsatorret_offwasNULL. not theNULLerasure bestie π
π SEE ALSO π
dwarf(3), dwarf_attr(3) π
mwah π this page is from Debian, dated December 20, 2014 β and thatβs the whole vibe check, byeee β¨π¦
π¦ 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) 2014 Kai Wang
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms