diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-07-09 23:52:22 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-07-09 23:52:22 -0700 |
commit | 415ac3df9b10ae426d4f71f9d48003f6a3c7bd8d (patch) | |
tree | ffdd1aed425688539db80ff7b9daf6f6ddbcbfff /configure | |
parent | b4f55afd031f14531ba7681032fc5f75a1578320 (diff) | |
download | glibc-415ac3df9b10ae426d4f71f9d48003f6a3c7bd8d.tar.gz |
Implement STB_GNU_UNIQUE handling.
Some symbols have to be identified process-wide by their name. This is
particularly important for some C++ features (e.g., class local static data
and static variables in inline functions). This cannot completely be
implemented with ELF functionality so far. The STB_GNU_UNIQUE binding
helps by ensuring the dynamic linker will always use the same definition for
all symbols with the same name and this binding.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -5994,6 +5994,32 @@ _ACEOF fi +{ $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5 +$as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; } +if test "${libc_cv_asm_unique_object+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat > conftest.s <<EOF +${libc_cv_dot_text} +_sym: +.type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object +EOF +if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then + libc_cv_asm_unique_object=yes +else + libc_cv_asm_unique_object=no +fi +rm -f conftest* +fi +{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5 +$as_echo "$libc_cv_asm_unique_object" >&6; } +if test $libc_cv_asm_unique_object = yes; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_ASM_UNIQUE_OBJECT 1 +_ACEOF + +fi + # For the multi-arch option we need support in the assembler. if test "$multi_arch" = yes; then if test "x$libc_cv_asm_type_prefix" != xno; then |