1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
1998-08-31  Ulrich Drepper  <drepper@cygnus.com>

	* elf/dl-close.c (_dl_close): Update _dl_loaded if the first
	object on the list is removed.  Don't use this code for PIC.
	Reported by HJ Lu [PR libc/770].
This commit is contained in:
Ulrich Drepper
1998-08-31 17:23:45 +00:00
parent bfce746a87
commit 7afab53d43
5 changed files with 27 additions and 7 deletions

View File

@ -26,9 +26,11 @@ testandset (int *spinlock)
{
int ret;
__asm__ __volatile__("xchgl %0, %1"
__asm__ __volatile__ (
"xchgl %0, %1"
: "=r"(ret), "=m"(*spinlock)
: "0"(1), "m"(*spinlock));
: "0"(1), "m"(*spinlock)
: "memory");
return ret;
}

View File

@ -26,9 +26,11 @@ testandset (int *spinlock)
{
int ret;
__asm__ __volatile__("xchgl %0, %1"
: "=r"(ret), "=m"(*spinlock)
: "0"(1), "m"(*spinlock));
__asm__ __volatile__(
"xchgl %0, %1"
: "=r"(ret), "=m"(*spinlock)
: "0"(1), "m"(*spinlock)
: "memory");
return ret;
}