diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-02 16:57:59 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-02 16:57:59 +0000 |
commit | 9de3e81d3ae0edf58696f5ef45356a2fbc615b9e (patch) | |
tree | 68a91274148408935b2018b28ae24be4b18c8c26 /libexec/ld.so/sparc64/rtld_machine.c | |
parent | 09e6d0d93f5a520c5819dda4ad20beeb4823f0d9 (diff) |
knf & ansi; drahn ok
Diffstat (limited to 'libexec/ld.so/sparc64/rtld_machine.c')
-rw-r--r-- | libexec/ld.so/sparc64/rtld_machine.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libexec/ld.so/sparc64/rtld_machine.c b/libexec/ld.so/sparc64/rtld_machine.c index a46e471b300..cddca12dc09 100644 --- a/libexec/ld.so/sparc64/rtld_machine.c +++ b/libexec/ld.so/sparc64/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.23 2002/12/18 19:20:02 drahn Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.24 2003/02/02 16:57:58 deraadt Exp $ */ /* * Copyright (c) 1999 Dale Rahn @@ -648,7 +648,7 @@ _dl_bind(elf_object_t *object, int index) sigfillset(&nmask); _dl_sigprocmask(SIG_BLOCK, &nmask, &omask); _dl_mprotect((void*)object->plt_addr, object->plt_size, - PROT_READ|PROT_WRITE|PROT_EXEC); + PROT_READ|PROT_WRITE|PROT_EXEC); } _dl_reloc_plt(addr, ooff + this->st_value, rela); @@ -656,7 +656,7 @@ _dl_bind(elf_object_t *object, int index) /* if PLT is (to be protected), change back to RO/X */ if (object->plt_addr != NULL && object->plt_size != 0) { _dl_mprotect((void*)object->plt_addr, object->plt_size, - PROT_READ|PROT_EXEC); + PROT_READ|PROT_EXEC); _dl_sigprocmask(SIG_SETMASK, &omask, NULL); } @@ -725,7 +725,7 @@ _dl_md_reloc_got(elf_object_t *object, int lazy) NULL); if (this != NULL) object->plt_addr = ooff + this->st_value; - + this = NULL; ooff = _dl_find_symbol("__plt_end", object, &this, SYM_SEARCH_SELF|SYM_NOWARNNOTFOUND|SYM_PLT, SYM_NOTPLT, @@ -743,10 +743,10 @@ _dl_md_reloc_got(elf_object_t *object, int lazy) pltgot[8] = (Elf_Addr)object; - if (object->got_addr != NULL && object->got_size != 0) + if (object->got_addr != NULL && object->got_size != 0) _dl_mprotect((void*)object->got_addr, object->got_size, - PROT_READ); - if (object->plt_addr != NULL && object->plt_size != 0) + PROT_READ); + if (object->plt_addr != NULL && object->plt_size != 0) _dl_mprotect((void*)object->plt_addr, object->plt_size, PROT_READ|PROT_EXEC); } |