summaryrefslogtreecommitdiff
path: root/libexec/ld.so/mips/archdep.h
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-02-15 22:43:07 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-02-15 22:43:07 +0000
commit4a0dddfd01348e3c2a7f9b347673233797e055d7 (patch)
tree048606d86c48e9f44cc3f7e00a71e609ae221b49 /libexec/ld.so/mips/archdep.h
parent6c34c2c4c127669edb0ec50693e3493ce3c5f154 (diff)
After relocation is completed, remove write protection from GOT/PLT in ld.so.
Diffstat (limited to 'libexec/ld.so/mips/archdep.h')
-rw-r--r--libexec/ld.so/mips/archdep.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/mips/archdep.h b/libexec/ld.so/mips/archdep.h
index 929325909b7..36dc6856835 100644
--- a/libexec/ld.so/mips/archdep.h
+++ b/libexec/ld.so/mips/archdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: archdep.h,v 1.4 2002/10/23 12:38:29 pefo Exp $ */
+/* $OpenBSD: archdep.h,v 1.5 2003/02/15 22:43:06 drahn Exp $ */
/*
* Copyright (c) 1998-2002 Opsycon AB, Sweden.
@@ -98,4 +98,6 @@ RELOC_GOT(struct elf_object *dynld, long loff)
dynld->status |= STAT_GOT_DONE;
}
+#define GOT_PERMS PROT_READ
+
#endif /* _MIPS_ARCHDEP_H_ */