mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
10 lines
388 B
C
10 lines
388 B
C
|
/* Add the symbol prefix to the symbol as needed.
|
||
|
Usage: SYMPFX(foo); */
|
||
|
#define __SYMPFX(pfx, sym) #pfx sym
|
||
|
#define _SYMPFX(pfx, sym) __SYMPFX(pfx, sym)
|
||
|
#define SYMPFX(sym) _SYMPFX(__USER_LABEL_PREFIX__, #sym)
|
||
|
|
||
|
/* Generate a .symver reference with symbol prefixes.
|
||
|
Usage: SYMVER(foo, foobar@ver); */
|
||
|
#define SYMVER(name, name2) __asm__(".symver " SYMPFX(name) "," SYMPFX(name2))
|