diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-11-16 21:15:48 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-11-16 21:15:48 +0000 |
commit | 4ed018dcfe811de635d3c7204d047764444863cb (patch) | |
tree | add7e4be1137bd2ded6928f1170da07a2812b822 /libexec/ld.so/alpha | |
parent | be4742ac4a77f2531b0e2c071cc7350b92f7b829 (diff) |
Finish ld.so's transition to GNU_RELRO: eliminate support for using
__got_{start,end} to find a region to mark read-only. It was only used
for binaries that didn't have a GNU_RELRO segment, but all archs have
been using that for over a year. Since support for insecure-PLT layouts
on powerpc and alpha have been removed, all archs handle GNU_RELRO the
same way and the support can be moved from the MD code to the MI code.
ok mpi@
Diffstat (limited to 'libexec/ld.so/alpha')
-rw-r--r-- | libexec/ld.so/alpha/rtld_machine.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libexec/ld.so/alpha/rtld_machine.c b/libexec/ld.so/alpha/rtld_machine.c index ca18c487bfb..0cb712d2533 100644 --- a/libexec/ld.so/alpha/rtld_machine.c +++ b/libexec/ld.so/alpha/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.63 2018/11/12 02:33:42 guenther Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.64 2018/11/16 21:15:47 guenther Exp $ */ /* * Copyright (c) 1999 Dale Rahn @@ -294,9 +294,6 @@ _dl_md_reloc_got(elf_object_t *object, int lazy) pltgot[1] = (Elf_Addr)object; } - /* mprotect the GOT */ - _dl_protect_segment(object, 0, "__got_start", "__got_end", PROT_READ); - return (fails); } |