diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-03-09 21:07:24 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-03-09 21:07:24 +0100 |
commit | 36f6e408845c8c539128f3fb9cb132bf1845a2c8 (patch) | |
tree | 6ee211fb85ff49938026eb4dafa53e32600c1be7 /include/libc-symbols.h | |
parent | 9b456c5da968ee832ea4b2b73a18a5bf6d2118a6 (diff) | |
download | glibc-36f6e408845c8c539128f3fb9cb132bf1845a2c8.tar.gz glibc-36f6e408845c8c539128f3fb9cb132bf1845a2c8.tar.xz glibc-36f6e408845c8c539128f3fb9cb132bf1845a2c8.zip |
<shlib-compat.h>: Support compat_symbol_reference for _ISOMAC
This is helpful for testing compat symbols in cases where _ISOMAC is activated implicitly due to -DMODULE_NAME=testsuite and cannot be disabled easily.
Diffstat (limited to 'include/libc-symbols.h')
-rw-r--r-- | include/libc-symbols.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h index ea126ae70c..c83e550b03 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -59,6 +59,19 @@ # define IN_MODULE (-1) #endif +/* Use symbol_version_reference to specify the version a symbol + reference should link to. Use symbol_version or + default_symbol_version for the definition of a versioned symbol. + The difference is that the latter is a no-op in non-shared + builds. */ +#ifdef __ASSEMBLER__ +# define symbol_version_reference(real, name, version) \ + .symver real, name##@##version +#else /* !__ASSEMBLER__ */ +# define symbol_version_reference(real, name, version) \ + __asm__ (".symver " #real "," #name "@" #version) +#endif + #ifndef _ISOMAC /* This is defined for the compilation of all C library code. features.h @@ -396,19 +409,6 @@ for linking") past the last element in SET. */ #define symbol_set_end_p(set, ptr) ((ptr) >= (void *const *) &__stop_##set) -/* Use symbol_version_reference to specify the version a symbol - reference should link to. Use symbol_version or - default_symbol_version for the definition of a versioned symbol. - The difference is that the latter is a no-op in non-shared - builds. */ -#ifdef __ASSEMBLER__ -# define symbol_version_reference(real, name, version) \ - .symver real, name##@##version -#else /* !__ASSEMBLER__ */ -# define symbol_version_reference(real, name, version) \ - __asm__ (".symver " #real "," #name "@" #version) -#endif - #ifdef SHARED # define symbol_version(real, name, version) \ symbol_version_reference(real, name, version) |