mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
(weak_symbol): New macro.
This commit is contained in:
parent
0677a80cdf
commit
e6964dd4e1
@ -96,13 +96,18 @@ Cambridge, MA 02139, USA. */
|
|||||||
#define weak_alias(original, alias) \
|
#define weak_alias(original, alias) \
|
||||||
.weak C_SYMBOL_NAME (alias); \
|
.weak C_SYMBOL_NAME (alias); \
|
||||||
C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
|
C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
|
||||||
|
|
||||||
|
/* Declare SYMBOL to be weak. */
|
||||||
|
#define weak_symbol(symbol) .weak C_SYMBOL_NAME (symbol)
|
||||||
#else
|
#else
|
||||||
|
#define weak_symbol(symbol) asm (".weak " __SYMBOL_PREFIX #symbol);
|
||||||
#define weak_alias(original, alias) \
|
#define weak_alias(original, alias) \
|
||||||
asm (".weak " __SYMBOL_PREFIX #alias "\n" \
|
asm (".weak " __SYMBOL_PREFIX #alias "\n" \
|
||||||
__SYMBOL_PREFIX #alias " = " __SYMBOL_PREFIX #original);
|
__SYMBOL_PREFIX #alias " = " __SYMBOL_PREFIX #original);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define weak_alias(original, alias) strong_alias(original, alias)
|
#define weak_alias(original, alias) strong_alias(original, alias)
|
||||||
|
#define weak_symbol(symbol) /* Do nothing. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user