diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-12-11 22:18:39 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-12-11 22:18:39 +0000 |
commit | 1ce9631b86cbc5ae3104561f37bf7ea22f8c437c (patch) | |
tree | eb393aa2c055fe395a2ac18d527daa3a49cb2b0b /sysdeps | |
parent | 092eb73ca2507c29adb37cd8075730e43c1e3794 (diff) | |
download | glibc-1ce9631b86cbc5ae3104561f37bf7ea22f8c437c.tar glibc-1ce9631b86cbc5ae3104561f37bf7ea22f8c437c.tar.gz glibc-1ce9631b86cbc5ae3104561f37bf7ea22f8c437c.tar.bz2 glibc-1ce9631b86cbc5ae3104561f37bf7ea22f8c437c.zip |
Update.
2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
in the right order.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/dl-fptr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/dl-fptr.c b/sysdeps/generic/dl-fptr.c index 32cf28c0ef..1ed463717d 100644 --- a/sysdeps/generic/dl-fptr.c +++ b/sysdeps/generic/dl-fptr.c @@ -31,7 +31,7 @@ #ifndef ELF_MACHINE_BOOT_FPTR_TABLE_LEN /* ELF_MACHINE_BOOT_FPTR_TABLE_LEN should be greater than the number of dynamic symbols in ld.so. */ -#define ELF_MACHINE_BOOT_FPTR_TABLE_LEN 256 +# define ELF_MACHINE_BOOT_FPTR_TABLE_LEN 256 #endif #ifndef ELF_MACHINE_LOAD_ADDRESS @@ -39,8 +39,8 @@ #endif #ifndef COMPARE_AND_SWAP -#define COMPARE_AND_SWAP(ptr,old,new) \ - atomic_compare_and_exchange_bool_acq ((ptr), (old), (new)) +# define COMPARE_AND_SWAP(ptr, old, new) \ + (atomic_compare_and_exchange_bool_acq (ptr, new, old) == 0) #endif ElfW(Addr) _dl_boot_fptr_table [ELF_MACHINE_BOOT_FPTR_TABLE_LEN]; |