aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc/sparc64/configure
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-03-12 00:38:37 +0000
committerUlrich Drepper <drepper@redhat.com>2002-03-12 00:38:37 +0000
commit89a3dd449a782f369c9ba2af1e7933b69323c4ea (patch)
treecef4a0789e79b03cff6328d0597c4f6e7e1a9c72 /sysdeps/sparc/sparc64/configure
parent14b2815be917c71d1310df760314581fa5073d07 (diff)
downloadglibc-89a3dd449a782f369c9ba2af1e7933b69323c4ea.tar
glibc-89a3dd449a782f369c9ba2af1e7933b69323c4ea.tar.gz
glibc-89a3dd449a782f369c9ba2af1e7933b69323c4ea.tar.bz2
glibc-89a3dd449a782f369c9ba2af1e7933b69323c4ea.zip
Update.
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].
Diffstat (limited to 'sysdeps/sparc/sparc64/configure')
-rw-r--r--sysdeps/sparc/sparc64/configure33
1 files changed, 33 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/configure b/sysdeps/sparc/sparc64/configure
new file mode 100644
index 0000000000..954ff7a03d
--- /dev/null
+++ b/sysdeps/sparc/sparc64/configure
@@ -0,0 +1,33 @@
+ # Local configure fragment for sysdeps/sparc/sparc64.
+
+# Check whether .got section comes before or after .dynamic
+echo $ac_n "checking where sparc64 .dynamic section comes before .got""... $ac_c" 1>&6
+echo "configure:6: checking where sparc64 .dynamic section comes before .got" >&5
+if eval "test \"`echo '$''{'libc_cv_sparc64_dynamic_before_got'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+
+${CC-cc} $CFLAGS -shared -Wl,--verbose 2>&1 \
+ | grep '^[ ]*\.\(got\|dynamic\)[^A-Za-z0-9_]' > conftest.order
+
+if test `cat conftest.order | wc -l` != 2; then
+ { echo "configure: error: Couldn't figure .got/.dynamic relative placement" 1>&2; exit 1; }
+else
+
+ 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
+
+fi
+rm -f conftest*
+fi
+
+echo "$ac_t""$libc_cv_sparc64_dynamic_before_got" 1>&6
+if test $libc_cv_sparc64_dynamic_before_got = yes; then
+ cat >> confdefs.h <<\EOF
+#define SPARC64_DYNAMIC_BEFORE_GOT 1
+EOF
+
+fi