rtld: Revert mprotect optimization during .bss creation
authorJohn Marino <draco@marino.st>
Fri, 13 Jan 2012 19:53:42 +0000 (20:53 +0100)
committerJohn Marino <draco@marino.st>
Sat, 14 Jan 2012 10:59:44 +0000 (11:59 +0100)
commit55071f7502bfdacc3b2ff971945c0f29dd6d82f8
treedc4c3893390d101986b3031968976089d0e64de6
parent8bdeb8d3af6c8df4ead74ba9f7c0f628cf1678ce
rtld: Revert mprotect optimization during .bss creation

Using only mprotect over .bss prevented it from writing .bss to the core
files as the whole region for the dso is mmapped with MAP_NOCORE flag.
Revert to previous mmap implementation.
Comes from FreeBSD SVN 225699
libexec/rtld-elf/map_object.c