mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-01 05:02:03 +03:00
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.
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user