Skip to content

Commit

Permalink
Merge sysdeps/i386/elf/Versions into sysdeps/i386/Versions.
Browse files Browse the repository at this point in the history
Move sysdeps/i386/elf/start.S to sysdeps/i386/
Merge sysdeps/i386/elf/configure.in into sysdeps/i386/configure.in
Delete merged files sysdeps/i386/elf/configure.in, sysdeps/i386/elf/Versions
and sysdeps/i386/elf/configure.
  • Loading branch information
Andreas Jaeger committed Mar 19, 2012
1 parent 1221efb commit 735095a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 170 deletions.
6 changes: 6 additions & 0 deletions sysdeps/i386/Versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ld {
GLIBC_2.3 {
# The alternative i386 runtime interface to TLS.
___tls_get_addr;
}
}
libc {
GLIBC_2.0 {
# Functions from libgcc.
Expand Down
34 changes: 34 additions & 0 deletions sysdeps/i386/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,37 @@ if AC_TRY_COMMAND([${CC-cc} -mno-vzeroupper -xc /dev/null -S -o /dev/null]); the
else
libc_cv_cc_novzeroupper=no
fi])

# Check for support of thread-local storage handling in assembler and
# linker.
AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl
cat > conftest.s <<\EOF
.section ".tdata", "awT", @progbits
.globl foo
foo: .long 1
.section ".tbss", "awT", @nobits
.globl bar
bar: .skip 4
.text
baz: leal bar@TLSLDM(%ebx), %eax
leal bar@DTPOFF(%eax), %edx
subl foo@GOTTPOFF(%edx), %eax
subl $bar@TPOFF, %eax
movl foo@GOTNTPOFF(%edx), %ecx
movl %gs:(%ecx), %eax
movl %gs:bar@NTPOFF, %eax
EOF
dnl
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_386_tls=yes
else
libc_cv_386_tls=no
fi
rm -f conftest*])
if test $libc_cv_386_tls = no; then
AC_MSG_ERROR([the assembler must support TLS])
fi

dnl It is always possible to access static and hidden symbols in an
dnl position independent way.
AC_DEFINE(PI_STATIC_AND_HIDDEN)
6 changes: 0 additions & 6 deletions sysdeps/i386/elf/Versions

This file was deleted.

128 changes: 0 additions & 128 deletions sysdeps/i386/elf/configure

This file was deleted.

36 changes: 0 additions & 36 deletions sysdeps/i386/elf/configure.in

This file was deleted.

File renamed without changes.

0 comments on commit 735095a

Please sign in to comment.