Skip to content
Snippets Groups Projects
Commit e2efe89b authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Crazy replacement for strong_alias on macOS.

This was cobbled together from a few different references.
All it's doing is forcing a symbol to be created with the slurm_*
name, and setting the symbol address to that of the unaliased symbol.
parent 7e98c23c
No related branches found
No related tags found
No related merge requests found
...@@ -380,10 +380,10 @@ ...@@ -380,10 +380,10 @@
# define strong_alias(name, aliasname) \ # define strong_alias(name, aliasname) \
extern __typeof (name) aliasname __attribute ((alias (#name))) extern __typeof (name) aliasname __attribute ((alias (#name)))
# else # else
/* dummy function definition,
* confirm "aliasname" is free and waste "name" */
# define strong_alias(name, aliasname) \ # define strong_alias(name, aliasname) \
extern void aliasname(int name) __asm__(".global _" #aliasname); \
__asm__(".set _" #aliasname ", _" #name); \
extern __typeof (name) aliasname
# endif # endif
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment