Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>

	* debug/catchsegv.sh: Handle text preceding backtrace better.
	* sysdeps/generic/segfault.c: Allow register dump.  Allow handler
	to be installed for other signals than SIGSEGV.
	* sysdeps/generic/register-dump.h: New file.
	* sysdeps/i386/register-dump.h: New file.
	* sysdeps/powerpc/register-dump.h: New file.

	* sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
	sigcontextinfo.h.
	* sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.

1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>

	* sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.

1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>

	* sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
	* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
	getresuid, getresgid.

1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>

	* sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
	pointer in userland.

1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
	and fix value.

1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* elf/ldd.bash.in: Add missing quotes around $file.  Make loop
	over arguments Bourne shell compatible.  Don't exit unsuccessfully
	if nonelf returns successfully.  Avoid duplicating most of the
	script.
	* sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
	around $file.

1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* libio/Versions (_IO_do_write, _IO_file_attach,
	_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
	_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
	_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
	_IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.

	* libio/fileops.c (_IO_do_write, _IO_file_attach,
	_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
	_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
	_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
	_IO_file_write, _IO_file_xsputn): Change the prefix to
	"_IO_new_". Added to GLIBC_2.1.

	* libio/libioP.h (_IO_do_write, _IO_file_attach,
	_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
	_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
	_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
	_IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
	"_IO_new_".

	* libio/oldfileops.c (_IO_do_write, _IO_file_attach,
	_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
	_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
	_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
	_IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.

	* csu/initfini.c: Return to .text before __gmon_start__.
	* elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
	(STO_MIPS_*): Rename from STO_*.
	(STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
	(STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
	* math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
	(main): e3s is negative on zero.
	* math/atest-exp2.c: Likewise.
1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* Makerules (install): Add comment about absolute paths.
  • Loading branch information
Ulrich Drepper committed Aug 24, 1998
1 parent c2228a5 commit ed1ac6a
Show file tree
Hide file tree
Showing 18 changed files with 762 additions and 212 deletions.
123 changes: 83 additions & 40 deletions ChangeLog
@@ -1,4 +1,47 @@
Mon Aug 24 10:37:38 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1998-08-24 16:34 Ulrich Drepper <drepper@cygnus.com>

* debug/catchsegv.sh: Handle text preceding backtrace better.
* sysdeps/generic/segfault.c: Allow register dump. Allow handler
to be installed for other signals than SIGSEGV.
* sysdeps/generic/register-dump.h: New file.
* sysdeps/i386/register-dump.h: New file.
* sysdeps/powerpc/register-dump.h: New file.

* sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
sigcontextinfo.h.
* sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.

1998-08-24 Geoff Keating <geoffk@ozemail.com.au>

* sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.

1998-08-09 Geoff Keating <geoffk@ozemail.com.au>

* sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
* sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
getresuid, getresgid.

1998-08-16 Geoff Keating <geoffk@ozemail.com.au>

* sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs. Set up stack
pointer in userland.

1998-08-21 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>

* sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
and fix value.

1998-08-22 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>

* elf/ldd.bash.in: Add missing quotes around $file. Make loop
over arguments Bourne shell compatible. Don't exit unsuccessfully
if nonelf returns successfully. Avoid duplicating most of the
script.
* sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
around $file.

1998-08-24 10:37 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>

* sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
sys/reg.h.
Expand All @@ -17,53 +60,53 @@ Mon Aug 24 10:37:38 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.
Likewise.

1998-08-17 H.J. Lu <hjl@gnu.org>
* libio/Versions (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.

* libio/fileops.c (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Change the prefix to
"_IO_new_". Added to GLIBC_2.1.
* libio/libioP.h (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
"_IO_new_".
* libio/oldfileops.c (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.

* libio/Versions (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.

* libio/fileops.c (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Change the prefix to
"_IO_new_". Added to GLIBC_2.1.

* libio/libioP.h (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
"_IO_new_".

* libio/oldfileops.c (_IO_do_write, _IO_file_attach,
_IO_file_close_it, _IO_file_finish, _IO_file_fopen,
_IO_file_init, _IO_file_overflow, _IO_file_seekoff,
_IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
_IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.

1998-08-23 Richard Henderson <rth@cygnus.com>

* Makeconfig (LDFLAGS): Remove.

* csu/initfini.c: Return to .text before __gmon_start__.
* csu/initfini.c: Return to .text before __gmon_start__.

* elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
(STO_MIPS_*): Rename from STO_*.
(STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
(STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
* elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
(STO_MIPS_*): Rename from STO_*.
(STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
(STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.

* math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
(main): e3s is negative on zero.
* math/atest-exp2.c: Likewise.
* math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
(main): e3s is negative on zero.
* math/atest-exp2.c: Likewise.
* math/atest-sincos.c: Likewise.

1998-08-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* Makerules (install): Add comment about absolute paths.
1998-08-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>

* Makerules (install): Add comment about absolute paths.

1998-08-23 Ulrich Drepper <drepper@cygnus.com>

* libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
Expand Down
81 changes: 24 additions & 57 deletions elf/ldd.bash.in
Expand Up @@ -102,33 +102,43 @@ case $# in
exit 1
;;
1)
single_file=t
;;
*)
single_file=f
;;
esac

result=0
for file do
# We don't list the file name when there is only one.
case "$1" in
*/*) file="$1"
test $single_file = t || echo "${file}:"
case $file in
*/*) :
;;
*) file="./$1"
*) file=./$file
;;
esac
if test ! -f "$file"; then
echo "ldd: ${file}:" $"no such file"
exit 1
echo "ldd: ${file}:" $"No such file or directory" >&2
result=1
elif test -r "$file"; then
test -x "$file" ||
echo 'ldd:' $"\
test -x "$file" || echo 'ldd:' $"\
warning: you do not have execution permission for" "\`$file'" >&2
verify_out=`${RTLD} --verify "$file"`
case $? in
0)
eval $add_env exec '"$file"' || exit 1
eval $add_env '"$file"' || result=1
;;
1)
# This can be a non-ELF binary or no binary at all.
nonelf $file ||
echo $" not a dynamic executable"
exit 1
nonelf "$file" || {
echo $" not a dynamic executable"
result=1
}
;;
2)
eval $add_env exec \${RTLD} '"$file"' || exit 1
eval $add_env \${RTLD} '"$file"' || result=1
;;
*)
echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($?)" >&2
Expand All @@ -137,52 +147,9 @@ warning: you do not have execution permission for" "\`$file'" >&2
esac
else
echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2
exit 1
result=1
fi
exit
;;
*)
result=0
for file; do
echo "${file}:"
case "$file" in
*/*) :
;;
*) file="./$file"
;;
esac
if test ! -f "$file"; then
echo "ldd: ${file}:" $"no such file"
result=1
elif test -r "$file"; then
test -x "$file" || echo 'ldd:' $"\
warning: you do not have execution permission for" "\`$file'" >&2
verify_out=`${RTLD} --verify "$file"`
case $? in
0)
eval $add_env '"$file"' || result=1
;;
1)
# This can be a non-ELF binary or no binary at all.
nonelf $file || {
echo $" not a dynamic executable"
result=1
}
;;
2)
eval $add_env ${RTLD} '"$file"' || result=1
;;
*)
echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($?)" >&2
exit 1
;;
esac
else
echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2
result=1
fi
done
esac
done

exit $result
# Local Variables:
Expand Down
10 changes: 10 additions & 0 deletions linuxthreads/ChangeLog
@@ -1,3 +1,13 @@
1998-08-24 Geoff Keating <geoffk@ozemail.com.au>

* spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
turned out that we didn't need to queue after all.

1998-08-22 Geoff Keating <geoffk@ozemail.com.au>

* sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
and wastes space; correct types.

1998-08-08 11:18 H.J. Lu <hjl@gnu.org>

* signals.c (sigaction): Handle NULL argument.
Expand Down
3 changes: 2 additions & 1 deletion linuxthreads/spinlock.c
Expand Up @@ -47,9 +47,10 @@ void __pthread_lock(struct _pthread_fastlock * lock)
newstatus = 1;
} else {
self = thread_self();
self->p_nextwaiting = (pthread_descr) oldstatus;
newstatus = (long) self;
}
if (self != NULL)
self->p_nextwaiting = (pthread_descr) oldstatus;
} while(! compare_and_swap(&lock->status, oldstatus, newstatus,
&lock->spinlock));
if (oldstatus != 0) suspend(self);
Expand Down
31 changes: 1 addition & 30 deletions linuxthreads/sysdeps/powerpc/pt-machine.h
Expand Up @@ -2,7 +2,6 @@
powerpc version.
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson <rth@tamu.edu>.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
Expand Down Expand Up @@ -31,34 +30,6 @@
#define sync() __asm__ __volatile__ ("sync")
#endif

/* Spinlock implementation; required. */
#if BROKEN_PPC_ASM_CR0
static
#else
extern inline
#endif
int
testandset (int *spinlock)
{
int ret;

sync();
__asm__ __volatile__(
"0: lwarx %0,0,%1 ;"
" cmpwi %0,0;"
" bne 1f;"
" stwcx. %2,0,%1;"
" bne- 0b;"
"1: "
: "=&r"(ret)
: "r"(spinlock), "r"(1)
: "cr0", "memory");
sync();

return ret != 0;
}


/* Get some notion of the current stack. Need not be exactly the top
of the stack, just something somewhere in the current frame. */
#define CURRENT_STACK_FRAME stack_pointer
Expand All @@ -74,7 +45,7 @@ static
extern inline
#endif
int
__compare_and_swap (int *p, int oldval, int newval)
__compare_and_swap (long *p, long oldval, long newval)
{
int ret;

Expand Down
21 changes: 21 additions & 0 deletions sysdeps/generic/register-dump.h
@@ -0,0 +1,21 @@
/* Dump registers.
Copyright (C) 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */

/* In general we cannot do anything. */

0 comments on commit ed1ac6a

Please sign in to comment.