|
Packit Service |
db8eaa |
/*
|
|
Packit Service |
db8eaa |
* ALSA lib - dynamic symbol versions
|
|
Packit Service |
db8eaa |
* Copyright (c) 2002 by Jaroslav Kysela <perex@perex.cz>
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
* This library is free software; you can redistribute it and/or modify
|
|
Packit Service |
db8eaa |
* it under the terms of the GNU Lesser General Public License as
|
|
Packit Service |
db8eaa |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
db8eaa |
* the License, or (at your option) any later version.
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
db8eaa |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
db8eaa |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
db8eaa |
* GNU Lesser General Public License for more details.
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
db8eaa |
* License along with this library; if not, write to the Free Software
|
|
Packit Service |
db8eaa |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
*/
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#ifndef __ALSA_SYMBOLS_H
|
|
Packit Service |
db8eaa |
#define __ALSA_SYMBOLS_H
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#if defined(PIC) && defined(VERSIONED_SYMBOLS) /* might be also configurable */
|
|
Packit Service |
db8eaa |
#define USE_VERSIONED_SYMBOLS
|
|
Packit Service |
db8eaa |
#endif
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#define INTERNAL_CONCAT2_2(Pre, Post) Pre##Post
|
|
Packit Service |
db8eaa |
#define INTERNAL(Name) INTERNAL_CONCAT2_2(__, Name)
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#define symbol_version(real, name, version) \
|
|
Packit Service |
db8eaa |
__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version)
|
|
Packit Service |
db8eaa |
#define default_symbol_version(real, name, version) \
|
|
Packit Service |
db8eaa |
__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version)
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#define EXPORT_SYMBOL __attribute__((visibility("default"),externally_visible))
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#ifdef USE_VERSIONED_SYMBOLS
|
|
Packit Service |
db8eaa |
#define use_symbol_version(real, name, version) \
|
|
Packit Service |
db8eaa |
symbol_version(real, name, version)
|
|
Packit Service |
db8eaa |
#define use_default_symbol_version(real, name, version) \
|
|
Packit Service |
db8eaa |
default_symbol_version(real, name, version)
|
|
Packit Service |
db8eaa |
#else
|
|
Packit Service |
db8eaa |
#define use_symbol_version(real, name, version) /* nothing */
|
|
Packit Service |
db8eaa |
#if defined(__alpha__) || defined(__mips__)
|
|
Packit Service |
db8eaa |
#define use_default_symbol_version(real, name, version) \
|
|
Packit Service |
db8eaa |
__asm__ (".weak " ASM_NAME(#name)); \
|
|
Packit Service |
db8eaa |
__asm__ (ASM_NAME(#name) " = " ASM_NAME(#real))
|
|
Packit Service |
db8eaa |
#else
|
|
Packit Service |
db8eaa |
#define use_default_symbol_version(real, name, version) \
|
|
Packit Service |
db8eaa |
__asm__ (".weak " ASM_NAME(#name)); \
|
|
Packit Service |
db8eaa |
__asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real))
|
|
Packit Service |
db8eaa |
#endif
|
|
Packit Service |
db8eaa |
#endif
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#endif /* __ALSA_SYMBOLS_H */
|