diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-01-09 22:51:05 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-01-09 22:51:05 +0000 |
commit | 91602f733fc8f36bc58a964d8d49479b01293aeb (patch) | |
tree | 4a8a0721223a481bea0b743b9ca2e37191945265 /libexec/ld.so/sparc64 | |
parent | 78cdd75ca94c869a8296979fb9d2d95913aafa3e (diff) |
Remove dependency on __got_{start,end} symbols and look at PT_GNU_RELRO
instead. Result in a few more pages that aren't writable on some platforms
(such as hppa). Based on an initial diff from guenther@.
Thanks to deraadt@ for testing.
ok guenther@
Diffstat (limited to 'libexec/ld.so/sparc64')
-rw-r--r-- | libexec/ld.so/sparc64/archdep.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libexec/ld.so/sparc64/archdep.h b/libexec/ld.so/sparc64/archdep.h index a27bd147a3c..c3afd159f11 100644 --- a/libexec/ld.so/sparc64/archdep.h +++ b/libexec/ld.so/sparc64/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.21 2016/05/18 20:40:20 deraadt Exp $ */ +/* $OpenBSD: archdep.h,v 1.22 2017/01/09 22:51:04 kettenis Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -66,6 +66,4 @@ RELOC_DYN(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_ */ |