elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
debug
/
testsym.c
File editor
/* testsym - example program built with ELKS symbol table */ #include <stdio.h> #include <string.h> #include <errno.h> #include "debug/instrument.h" #include "debug/syms.h" void z() { _print_regs(); printf("Stack backtrace of z:\n"); _print_stack(0xC0DE); } void y(int a) { z(); } void x() { extern long lseek(); //printf("x = %s\n", sym_text_symbol(x, -1)); //printf("strlen+3 = %s\n", sym_text_symbol(strlen+3, 3)); //printf("strlen = %s\n", sym_text_symbol(sym_fn_start_address(strlen+3), 3)); //printf("lseek+20 = %s\n", sym_text_symbol(lseek+32, 32)); //printf(".shift_loop = %s\n", sym_text_symbol((void *)0x110b, -1)); //printf("errno = %s\n", sym_data_symbol(&errno, -1)); y(1); } int main(int ac, char **av) { x(); }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history