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
/
libc
/
include
/
sys
/
linksym.h
File editor
#ifndef __SYS_LINKSYM_H #define __SYS_LINKSYM_H /* Internal macro to force a reference to an external symbol */ /* Partly based on https://justine.lol/sizetricks/ */ /* This assumes that the linker script discards any .discard sections */ #ifndef __ASSEMBLER__ #ifdef __GNUC__ #define __LINK_SYMBOL(sym) \ asm(".pushsection .discard; " \ ".long " #sym "; " \ ".popsection") #endif #ifdef __WATCOMC__ extern void __LINK_SYMBOL(void (*sym)()); #pragma aux __LINK_SYMBOL = __parm [ __ax]; #endif #ifdef __C86__ #define __LINK_SYMBOL(sym) /* FIXME not implemented */ #endif #else /* __ASSEMBLER__ */ #define __LINK_SYMBOL(sym) \ .pushsection .discard; \ .long #sym; \ .popsection #endif /* __ASSEMBLER__ */ #endif
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