Alan Cox c547cbb49c Avoid unnecessary calls to vm_map_protect() in elf_load_section().
Typically, when elf_load_section() unconditionally passed VM_PROT_ALL to
elf_map_insert(), it was needlessly enabling execute access on the
mapping, and it would later have to call vm_map_protect() to correct the
mapping's access rights.  Now, instead, elf_load_section() always passes
its parameter "prot" to elf_map_insert().  So, elf_load_section() must
only call vm_map_protect() if it needs to remove the write access that
was temporarily granted to perform a copyout().

Reviewed by:	kib
MFC after:	1 week
2017-03-18 23:37:00 +00:00
..
2016-10-04 17:57:30 +00:00
2016-11-08 23:59:41 +00:00
2017-02-12 09:49:44 +00:00
2017-01-25 20:22:32 +00:00
2017-02-14 13:54:05 +00:00
2017-03-14 22:02:02 +00:00
2016-11-08 23:59:41 +00:00
2017-02-07 16:01:07 +00:00
2016-10-24 16:40:27 +00:00
2017-01-14 04:16:13 +00:00
2016-12-27 20:22:17 +00:00
2016-07-26 17:23:49 +00:00
2016-04-14 17:07:26 +00:00
2017-02-13 09:04:38 +00:00