summaryrefslogtreecommitdiff
path: root/libexec/ld.so/sparc64
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/sparc64
parent6c34c2c4c127669edb0ec50693e3493ce3c5f154 (diff)
After relocation is completed, remove write protection from GOT/PLT in ld.so.
Diffstat (limited to 'libexec/ld.so/sparc64')
-rw-r--r--libexec/ld.so/sparc64/archdep.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/sparc64/archdep.h b/libexec/ld.so/sparc64/archdep.h
index dc174b56d7d..f73b7a9cffc 100644
--- a/libexec/ld.so/sparc64/archdep.h
+++ b/libexec/ld.so/sparc64/archdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: archdep.h,v 1.14 2002/10/25 10:39:52 pefo Exp $ */
+/* $OpenBSD: archdep.h,v 1.15 2003/02/15 22:43:06 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -78,4 +78,6 @@ RELOC_RELA(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v)
#define RELOC_GOT(obj, offs)
+#define GOT_PERMS PROT_READ
+
#endif /* _SPARC64_ARCHDEP_H_ */