summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-29 16:58:13 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-29 16:58:13 +0000
commit6eaccb759aff7e3fdd679d39aabaf773b18dfbd1 (patch)
treeba33932b592d55490b64f2c76ad367e0530ad170 /sysdeps/generic
parent21ab6fb6bc4c2eb2b3a9b533d11942b45865aca5 (diff)
downloadglibc-6eaccb759aff7e3fdd679d39aabaf773b18dfbd1.tar.gz
glibc-6eaccb759aff7e3fdd679d39aabaf773b18dfbd1.tar.xz
glibc-6eaccb759aff7e3fdd679d39aabaf773b18dfbd1.zip
1999-01-29  Richard Henderson  <rth@twiddle.net>

	* scripts/config.sub: Recognize alpha{pca5[67],ev[67]}.

	* sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
	Format pointer differences as longs.

	* sysdeps/alpha/fpu/s_floor.c, sysdeps/alpha/fpu/s_floorf.c:
	Copy commentary from bits/mathinclude.h.  Kill unused defines.

	* sysdeps/alpha/atomicity.h: New file.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/elf/backtracesyms.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/generic/elf/backtracesyms.c b/sysdeps/generic/elf/backtracesyms.c
index a14ac596b4..100d94aa42 100644
--- a/sysdeps/generic/elf/backtracesyms.c
+++ b/sysdeps/generic/elf/backtracesyms.c
@@ -1,5 +1,5 @@
 /* Return list with names for address in backtrace.
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -76,9 +76,11 @@ __backtrace_symbols (array, size)
 	      char buf[20];
 
 	      if (array[cnt] >= (void *) info[cnt].dli_saddr)
-		sprintf (buf, "+0x%x", array[cnt] - info[cnt].dli_saddr);
+		sprintf (buf, "+%#lx",
+			 (unsigned long)(array[cnt] - info[cnt].dli_saddr));
 	      else
-		sprintf (buf, "-0x%x", info[cnt].dli_saddr - array[cnt]);
+		sprintf (buf, "-%#lx",
+			 (unsigned long)(info[cnt].dli_saddr - array[cnt]));
 
 	      last += 1 + sprintf (last, "%s%s%s%s%s[%p]",
 				   info[cnt].dli_fname ?: "",