mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-28 05:21:13 +00:00
89a3dd449a
2002-03-11 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/elf/configure.in: Fix comment. * sysdeps/sparc/sparc64/configure.in: New. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix if .dynamic comes before .got. * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add. * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM): Fix typos. * string/strfry.c: Add some more randomness to the seed. Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>. Patch by James Antill <james@anqd.org> [PR libc/2787].
27 lines
909 B
Plaintext
27 lines
909 B
Plaintext
sinclude(./aclocal.m4)dnl Autoconf lossage
|
|
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
|
# Local configure fragment for sysdeps/sparc/sparc64.
|
|
|
|
# Check whether .got section comes before or after .dynamic
|
|
AC_CACHE_CHECK(where sparc64 .dynamic section comes before .got,
|
|
libc_cv_sparc64_dynamic_before_got, [dnl
|
|
changequote(,)
|
|
${CC-cc} $CFLAGS -shared -Wl,--verbose 2>&1 \
|
|
| grep '^[ ]*\.\(got\|dynamic\)[^A-Za-z0-9_]' > conftest.order
|
|
changequote([,])
|
|
if test `cat conftest.order | wc -l` != 2; then
|
|
AC_ERROR(Couldn't figure .got/.dynamic relative placement)
|
|
else
|
|
changequote(,)
|
|
if head -n 1 conftest.order | grep '^[ ]*\.got'; then
|
|
libc_cv_sparc64_dynamic_before_got=no
|
|
else
|
|
libc_cv_sparc64_dynamic_before_got=yes
|
|
fi
|
|
changequote([,])
|
|
fi
|
|
rm -f conftest*])
|
|
if test $libc_cv_sparc64_dynamic_before_got = yes; then
|
|
AC_DEFINE(SPARC64_DYNAMIC_BEFORE_GOT)
|
|
fi
|