diff options
Diffstat (limited to 'libexec/ld.so/arm/rtld_machine.c')
-rw-r--r-- | libexec/ld.so/arm/rtld_machine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/arm/rtld_machine.c b/libexec/ld.so/arm/rtld_machine.c index 63225443da6..84205cb5ae3 100644 --- a/libexec/ld.so/arm/rtld_machine.c +++ b/libexec/ld.so/arm/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.10 2006/08/23 21:22:09 drahn Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.11 2007/05/05 15:21:21 drahn Exp $ */ /* * Copyright (c) 2004 Dale Rahn @@ -411,6 +411,7 @@ _dl_bind(elf_object_t *object, int relidx) if (object->got_size != 0) { sigfillset(&nmask); _dl_sigprocmask(SIG_BLOCK, &nmask, &omask); + _dl_thread_bind_lock(0); _dl_mprotect((void*)object->got_start, object->got_size, PROT_READ|PROT_WRITE); } @@ -422,6 +423,7 @@ _dl_bind(elf_object_t *object, int relidx) if (object->got_size != 0) { _dl_mprotect((void*)object->got_start, object->got_size, PROT_READ); + _dl_thread_bind_lock(1); _dl_sigprocmask(SIG_SETMASK, &omask, NULL); } return newval; |