When handling DT_TEXTREL only set the mapping to READ+WRITE, ignore
authorderaadt <deraadt@openbsd.org>
Tue, 21 Jun 2016 15:25:36 +0000 (15:25 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 21 Jun 2016 15:25:36 +0000 (15:25 +0000)
commitc9b6ee7300589abe464358907bb70e22d52db7fb
tree821c67cd151c9e4e121796ab78bbe054f102fa64
parent11632bdc54d5a148975e3e936d07b70e8bad28f7
When handling DT_TEXTREL only set the mapping to READ+WRITE, ignore
possible EXEC permission for the section, because the proper permission
is set late, and there are no thread concerns here.  Avoids W^X issues
in oddball cases.
ok guenther kettenis
libexec/ld.so/alpha/rtld_machine.c
libexec/ld.so/amd64/rtld_machine.c
libexec/ld.so/arm/rtld_machine.c
libexec/ld.so/m88k/rtld_machine.c
libexec/ld.so/powerpc/rtld_machine.c
libexec/ld.so/sh/rtld_machine.c
libexec/ld.so/sparc/rtld_machine.c
libexec/ld.so/sparc64/rtld_machine.c