/usr/include
NameSizeModeActions
arpa/-0755rm
asm/-0755rm
asm-generic/-0755rm
bind9/-0755rm
bits/-0755rm
c++/-0755rm
drm/-0755rm
e2p/-0755rm
et/-0755rm
event2/-0755rm
ext2fs/-0755rm
finclude/-0755rm
fontconfig/-0755rm
freetype2/-0755rm
fstrm/-0755rm
gdbm/-0755rm
GL/-0755rm
gnu/-0755rm
google/-0755rm
gssapi/-0755rm
gssrpc/-0755rm
json-c/-0755rm
kadm5/-0755rm
krb5/-0755rm
libexslt/-0755rm
libltdl/-0755rm
libpng16/-0755rm
libxml2/-0755rm
libxslt/-0755rm
linux/-0755rm
lzma/-0755rm
misc/-0755rm
mtd/-0755rm
mysql/-0755rm
ncurses/-0755rm
ncursesw/-0755rm
net/-0755rm
netash/-0755rm
netatalk/-0755rm
netax25/-0755rm
neteconet/-0755rm
netinet/-0755rm
netipx/-0755rm
netiucv/-0755rm
netpacket/-0755rm
netrom/-0755rm
netrose/-0755rm
nfs/-0755rm
openssl/-0755rm
perf/-0755rm
protobuf-c/-0755rm
protocols/-0755rm
python3.6m/-0755rm
python3.12/-0755rm
rdma/-0755rm
rpc/-0755rm
scsi/-0755rm
security/-0755rm
selinux/-0755rm
sepol/-0755rm
sound/-0755rm
sys/-0755rm
uuid/-0755rm
video/-0755rm
webp/-0755rm
X11/-0755rm
xcb/-0755rm
xen/-0755rm
a.out.h43500644editdlrm
aio.h74560644editdlrm
aliases.h20310644editdlrm
alloca.h12030644editdlrm
ar.h17300644editdlrm
argp.h254140644editdlrm
argz.h60500644editdlrm
assert.h45610644editdlrm
autosprintf.h23830644editdlrm
byteswap.h14040644editdlrm
bzlib.h62450644editdlrm
complex.h71630644editdlrm
com_err.h21180644editdlrm
cpio.h22670644editdlrm
cpuidle.h8440644editdlrm
crypt.h91180644editdlrm
ctype.h109630644editdlrm
curses.h996250644editdlrm
cursesapp.h67750644editdlrm
cursesf.h278490644editdlrm
cursesm.h196770644editdlrm
cursesp.h86010644editdlrm
cursesw.h497190644editdlrm
cursslk.h73040644editdlrm
dbm.h14140644editdlrm
dirent.h124840644editdlrm
dlfcn.h72380644editdlrm
elf.h1748280644editdlrm
endian.h31890644editdlrm
entities.h49300644editdlrm
envz.h28660644editdlrm
err.h22090644editdlrm
errno.h16780644editdlrm
error.h20390644editdlrm
eti.h28910644editdlrm
etip.h97020644editdlrm
evdns.h20190644editdlrm
event.h27440644editdlrm
evhttp.h20350644editdlrm
evrpc.h20150644editdlrm
evutil.h17820644editdlrm
execinfo.h15220644editdlrm
expat.h442730644editdlrm
expat_config.h39100644editdlrm
expat_external.h60290644editdlrm
fcntl.h109580644editdlrm
features.h160620644editdlrm
fenv.h58570644editdlrm
FlexLexer.h68930644editdlrm
fmtmsg.h32390644editdlrm
fnmatch.h22950644editdlrm
form.h186010644editdlrm
fpu_control.h35830644editdlrm
fstab.h31110644editdlrm
fstrm.h130170644editdlrm
fts.h83720644editdlrm
ftw.h52510644editdlrm
gconv.h40810644editdlrm
gcrypt.h703610644editdlrm
gd.h577770644editdlrm
gdbm.h103450644editdlrm
gdcache.h28980644editdlrm
gdfontg.h5530644editdlrm
gdfontl.h5510644editdlrm
gdfontmb.h5190644editdlrm
gdfonts.h5150644editdlrm
gdfontt.h5460644editdlrm
gdfx.h4970644editdlrm
gdpp.h521620644editdlrm
gd_color_map.h4780644editdlrm
gd_errors.h15030644editdlrm
gd_io.h31250644editdlrm
gelf.h114060644editdlrm
getopt.h14680644editdlrm
gettext-po.h155340644editdlrm
glob.h66140644editdlrm
gnu-versions.h23420644editdlrm
gnumake.h29120644editdlrm
gpg-error.h678790644editdlrm
gpgrt.h678790644editdlrm
grp.h66860644editdlrm
gshadow.h45280644editdlrm
gssapi.h1810644editdlrm
iconv.h18570644editdlrm
idn-free.h24720644editdlrm
idn-int.h200644editdlrm
idna.h35640644editdlrm
ieee754.h49100644editdlrm
ifaddrs.h28400644editdlrm
inttypes.h118920644editdlrm
jconfig-64.h22250644editdlrm
jconfig.h2460644editdlrm
jerror.h150880644editdlrm
jmorecfg.h150490644editdlrm
jpegint.h155860644editdlrm
jpeglib.h498750644editdlrm
kdb.h692850644editdlrm
keyutils.h76980644editdlrm
krad.h89330644editdlrm
krb5.h4020644editdlrm
langinfo.h178480644editdlrm
lastlog.h1260644editdlrm
libaio.h89370644editdlrm
libelf.h203180644editdlrm
libgen.h13850644editdlrm
libintl.h45790644editdlrm
limits.h54120644editdlrm
link.h72180644editdlrm
locale.h76740644editdlrm
ltdl.h57090644editdlrm
lzma.h98170644editdlrm
malloc.h61020644editdlrm
math.h533180644editdlrm
mcheck.h24340644editdlrm
memory.h9550644editdlrm
menu.h121970644editdlrm
mntent.h33580644editdlrm
monetary.h18030644editdlrm
mqueue.h37590644editdlrm
ncurses.h996250644editdlrm
ncurses_dll.h42770644editdlrm
nc_tparm.h41970644editdlrm
ndbm.h24540644editdlrm
netdb.h280990644editdlrm
nlist.h16010644editdlrm
nl_types.h17520644editdlrm
nss.h18780644editdlrm
obstack.h213060644editdlrm
panel.h41230644editdlrm
paths.h29770644editdlrm
pcre2.h448020644editdlrm
pcre2posix.h58040644editdlrm
png.h1441490644editdlrm
pngconf.h228450644editdlrm
pnglibconf.h75670644editdlrm
poll.h220644editdlrm
pr29.h21230644editdlrm
printf.h68000644editdlrm
proc_service.h34760644editdlrm
profile.h121540644editdlrm
pthread.h412690644editdlrm
pty.h15690644editdlrm
punycode.h93840644editdlrm
pwd.h61580644editdlrm
regex.h247150644editdlrm
regexp.h14470644editdlrm
resolv.h121530644editdlrm
re_comp.h9620644editdlrm
sched.h47320644editdlrm
search.h52230644editdlrm
semaphore.h23990644editdlrm
setjmp.h36690644editdlrm
sgtty.h13430644editdlrm
shadow.h54710644editdlrm
signal.h122430644editdlrm
spawn.h66900644editdlrm
stab.h2640644editdlrm
stdc-predef.h22890644editdlrm
stdint.h84690644editdlrm
stdio.h301680644editdlrm
stdio_ext.h27990644editdlrm
stdlib.h356530644editdlrm
string.h175870644editdlrm
stringprep.h82270644editdlrm
strings.h47520644editdlrm
syscall.h250644editdlrm
sysexits.h52320644editdlrm
syslog.h240644editdlrm
tar.h37850644editdlrm
term.h411900644editdlrm
termcap.h34730644editdlrm
termio.h2140644editdlrm
termios.h35980644editdlrm
term_entry.h87600644editdlrm
tgmath.h314890644editdlrm
threads.h66550644editdlrm
thread_db.h160230644editdlrm
tic.h136380644editdlrm
tiff.h359830644editdlrm
tiffconf-64.h34290644editdlrm
tiffconf.h2500644editdlrm
tiffio.h232270644editdlrm
tiffio.hxx17020644editdlrm
tiffvers.h4100644editdlrm
time.h103600644editdlrm
tld.h46500644editdlrm
ttyent.h24940644editdlrm
uchar.h20010644editdlrm
ucontext.h20360644editdlrm
ulimit.h15830644editdlrm
unctrl.h30990644editdlrm
unistd.h427380644editdlrm
utime.h15010644editdlrm
utmp.h32220644editdlrm
utmpx.h40990644editdlrm
values.h19550644editdlrm
verto-module.h66400644editdlrm
verto.h194370644editdlrm
wait.h220644editdlrm
wchar.h311110644editdlrm
wctype.h55480644editdlrm
wordexp.h25010644editdlrm
zbuff.h115000644editdlrm
zconf.h162620644editdlrm
zdict.h172030644editdlrm
zlib.h962610644editdlrm
zstd.h1199720644editdlrm
zstd_errors.h37510644editdlrm
Edit: /usr/include/gelf.h (11406B)
/* This file defines generic ELF types, structures, and macros. Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2015 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify it under the terms of either * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version or * the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version or both in parallel, as here. elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received copies of the GNU General Public License and the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GELF_H #define _GELF_H 1 #include #ifdef __cplusplus extern "C" { #endif /* Class independent type definitions. Correctly speaking this is not true. We assume that 64-bit binaries are the largest class and therefore all other classes can be represented without loss. */ /* Type for a 16-bit quantity. */ typedef Elf64_Half GElf_Half; /* Types for signed and unsigned 32-bit quantities. */ typedef Elf64_Word GElf_Word; typedef Elf64_Sword GElf_Sword; /* Types for signed and unsigned 64-bit quantities. */ typedef Elf64_Xword GElf_Xword; typedef Elf64_Sxword GElf_Sxword; /* Type of addresses. */ typedef Elf64_Addr GElf_Addr; /* Type of file offsets. */ typedef Elf64_Off GElf_Off; /* The ELF file header. This appears at the start of every ELF file. */ typedef Elf64_Ehdr GElf_Ehdr; /* Section header. */ typedef Elf64_Shdr GElf_Shdr; /* Section index. */ /* XXX This should probably be a larger type in preparation of times when regular section indices can be larger. */ typedef Elf64_Section GElf_Section; /* Symbol table entry. */ typedef Elf64_Sym GElf_Sym; /* The syminfo section if available contains additional information about every dynamic symbol. */ typedef Elf64_Syminfo GElf_Syminfo; /* Relocation table entry without addend (in section of type SHT_REL). */ typedef Elf64_Rel GElf_Rel; /* Relocation table entry with addend (in section of type SHT_RELA). */ typedef Elf64_Rela GElf_Rela; /* Relative relocation entry (in section of type SHT_RELR). */ typedef Elf64_Relr GElf_Relr; /* Program segment header. */ typedef Elf64_Phdr GElf_Phdr; /* Header of a compressed section. */ typedef Elf64_Chdr GElf_Chdr; /* Dynamic section entry. */ typedef Elf64_Dyn GElf_Dyn; /* Version definition sections. */ typedef Elf64_Verdef GElf_Verdef; /* Auxiliary version information. */ typedef Elf64_Verdaux GElf_Verdaux; /* Version dependency section. */ typedef Elf64_Verneed GElf_Verneed; /* Auxiliary needed version information. */ typedef Elf64_Vernaux GElf_Vernaux; /* Type for version symbol information. */ typedef Elf64_Versym GElf_Versym; /* Auxiliary vector. */ typedef Elf64_auxv_t GElf_auxv_t; /* Note section contents. */ typedef Elf64_Nhdr GElf_Nhdr; /* Move structure. */ typedef Elf64_Move GElf_Move; /* Library list structure. */ typedef Elf64_Lib GElf_Lib; /* How to extract and insert information held in the st_info field. */ #define GELF_ST_BIND(val) ELF64_ST_BIND (val) #define GELF_ST_TYPE(val) ELF64_ST_TYPE (val) #define GELF_ST_INFO(bind, type) ELF64_ST_INFO (bind, type) /* How to extract information held in the st_other field. */ #define GELF_ST_VISIBILITY(val) ELF64_ST_VISIBILITY (val) /* How to extract and insert information held in the r_info field. */ #define GELF_R_SYM(info) ELF64_R_SYM (info) #define GELF_R_TYPE(info) ELF64_R_TYPE (info) #define GELF_R_INFO(sym, type) ELF64_R_INFO (sym, type) /* How to extract and insert information held in the m_info field. */ #define GELF_M_SYM(info) ELF64_M_SYM (info) #define GELF_M_SIZE(info) ELF64_M_SIZE (info) #define GELF_M_INFO(sym, size) ELF64_M_INFO (sym, size) /* Get class of the file associated with ELF. */ extern int gelf_getclass (Elf *__elf); /* Return size of array of COUNT elements of the type denoted by TYPE in the external representation. The binary class is taken from ELF. The result is based on version VERSION of the ELF standard. */ extern size_t gelf_fsize (Elf *__elf, Elf_Type __type, size_t __count, unsigned int __version); /* Retrieve object file header. */ extern GElf_Ehdr *gelf_getehdr (Elf *__elf, GElf_Ehdr *__dest); /* Update the ELF header. */ extern int gelf_update_ehdr (Elf *__elf, GElf_Ehdr *__src); /* Create new ELF header if none exists. Creates an Elf32_Ehdr if CLASS is ELFCLASS32 or an Elf64_Ehdr if CLASS is ELFCLASS64. Returns NULL on error. */ extern void *gelf_newehdr (Elf *__elf, int __class); /* Get section at OFFSET. */ extern Elf_Scn *gelf_offscn (Elf *__elf, GElf_Off __offset); /* Retrieve section header. */ extern GElf_Shdr *gelf_getshdr (Elf_Scn *__scn, GElf_Shdr *__dst); /* Update section header. */ extern int gelf_update_shdr (Elf_Scn *__scn, GElf_Shdr *__src); /* Retrieve program header table entry. */ extern GElf_Phdr *gelf_getphdr (Elf *__elf, int __ndx, GElf_Phdr *__dst); /* Update the program header. */ extern int gelf_update_phdr (Elf *__elf, int __ndx, GElf_Phdr *__src); /* Create new program header with PHNUM entries. Creates either an Elf32_Phdr or an Elf64_Phdr depending on whether the given ELF is ELFCLASS32 or ELFCLASS64. Returns NULL on error. */ extern void *gelf_newphdr (Elf *__elf, size_t __phnum); /* Get compression header of section if any. Returns NULL and sets elf_errno if the section isn't compressed or an error occurred. */ extern GElf_Chdr *gelf_getchdr (Elf_Scn *__scn, GElf_Chdr *__dst); /* Convert data structure from the representation in the file represented by ELF to their memory representation. */ extern Elf_Data *gelf_xlatetom (Elf *__elf, Elf_Data *__dest, const Elf_Data *__src, unsigned int __encode); /* Convert data structure from to the representation in memory represented by ELF file representation. */ extern Elf_Data *gelf_xlatetof (Elf *__elf, Elf_Data *__dest, const Elf_Data *__src, unsigned int __encode); /* Retrieve REL relocation info at the given index. */ extern GElf_Rel *gelf_getrel (Elf_Data *__data, int __ndx, GElf_Rel *__dst); /* Retrieve RELA relocation info at the given index. */ extern GElf_Rela *gelf_getrela (Elf_Data *__data, int __ndx, GElf_Rela *__dst); /* Update REL relocation information at given index. */ extern int gelf_update_rel (Elf_Data *__dst, int __ndx, GElf_Rel *__src); /* Update RELA relocation information at given index. */ extern int gelf_update_rela (Elf_Data *__dst, int __ndx, GElf_Rela *__src); /* Retrieve symbol information from the symbol table at the given index. */ extern GElf_Sym *gelf_getsym (Elf_Data *__data, int __ndx, GElf_Sym *__dst); /* Update symbol information in the symbol table at the given index. */ extern int gelf_update_sym (Elf_Data *__data, int __ndx, GElf_Sym *__src); /* Retrieve symbol information and separate section index from the symbol table at the given index. */ extern GElf_Sym *gelf_getsymshndx (Elf_Data *__symdata, Elf_Data *__shndxdata, int __ndx, GElf_Sym *__sym, Elf32_Word *__xshndx); /* Update symbol information and separate section index in the symbol table at the given index. */ extern int gelf_update_symshndx (Elf_Data *__symdata, Elf_Data *__shndxdata, int __ndx, GElf_Sym *__sym, Elf32_Word __xshndx); /* Retrieve additional symbol information from the symbol table at the given index. */ extern GElf_Syminfo *gelf_getsyminfo (Elf_Data *__data, int __ndx, GElf_Syminfo *__dst); /* Update additional symbol information in the symbol table at the given index. */ extern int gelf_update_syminfo (Elf_Data *__data, int __ndx, GElf_Syminfo *__src); /* Get information from dynamic table at the given index. */ extern GElf_Dyn *gelf_getdyn (Elf_Data *__data, int __ndx, GElf_Dyn *__dst); /* Update information in dynamic table at the given index. */ extern int gelf_update_dyn (Elf_Data *__dst, int __ndx, GElf_Dyn *__src); /* Get move structure at the given index. */ extern GElf_Move *gelf_getmove (Elf_Data *__data, int __ndx, GElf_Move *__dst); /* Update move structure at the given index. */ extern int gelf_update_move (Elf_Data *__data, int __ndx, GElf_Move *__src); /* Get library from table at the given index. */ extern GElf_Lib *gelf_getlib (Elf_Data *__data, int __ndx, GElf_Lib *__dst); /* Update library in table at the given index. */ extern int gelf_update_lib (Elf_Data *__data, int __ndx, GElf_Lib *__src); /* Retrieve symbol version information at given index. */ extern GElf_Versym *gelf_getversym (Elf_Data *__data, int __ndx, GElf_Versym *__dst); /* Update symbol version information. */ extern int gelf_update_versym (Elf_Data *__data, int __ndx, GElf_Versym *__src); /* Retrieve required symbol version information at given offset. */ extern GElf_Verneed *gelf_getverneed (Elf_Data *__data, int __offset, GElf_Verneed *__dst); /* Update required symbol version information. */ extern int gelf_update_verneed (Elf_Data *__data, int __offset, GElf_Verneed *__src); /* Retrieve additional required symbol version information at given offset. */ extern GElf_Vernaux *gelf_getvernaux (Elf_Data *__data, int __offset, GElf_Vernaux *__dst); /* Update additional required symbol version information. */ extern int gelf_update_vernaux (Elf_Data *__data, int __offset, GElf_Vernaux *__src); /* Retrieve symbol version definition information at given offset. */ extern GElf_Verdef *gelf_getverdef (Elf_Data *__data, int __offset, GElf_Verdef *__dst); /* Update symbol version definition information. */ extern int gelf_update_verdef (Elf_Data *__data, int __offset, GElf_Verdef *__src); /* Retrieve additional symbol version definition information at given offset. */ extern GElf_Verdaux *gelf_getverdaux (Elf_Data *__data, int __offset, GElf_Verdaux *__dst); /* Update additional symbol version definition information. */ extern int gelf_update_verdaux (Elf_Data *__data, int __offset, GElf_Verdaux *__src); /* Get auxv entry at the given index. */ extern GElf_auxv_t *gelf_getauxv (Elf_Data *__data, int __ndx, GElf_auxv_t *__dst); /* Update auxv entry at the given index. */ extern int gelf_update_auxv (Elf_Data *__data, int __ndx, GElf_auxv_t *__src); /* Get note header at the given offset into the data, and the offsets of the note's name and descriptor data. Returns the offset of the next note header, or 0 for an invalid offset or corrupt note header. */ extern size_t gelf_getnote (Elf_Data *__data, size_t __offset, GElf_Nhdr *__result, size_t *__name_offset, size_t *__desc_offset); /* Compute simple checksum from permanent parts of the ELF file. */ extern long int gelf_checksum (Elf *__elf); #ifdef __cplusplus } #endif #endif /* gelf.h */