Mark Relocation Section as NotNeeded (dotnet/coreclr#25715)
authorDong-Heon Jung <dheon.jung@samsung.com>
Fri, 30 Aug 2019 21:05:53 +0000 (06:05 +0900)
committerJan Kotas <jkotas@microsoft.com>
Fri, 30 Aug 2019 21:05:53 +0000 (14:05 -0700)
commit4d369ff6f6d7ccc490644555df8975d7febf2020
treeabf6db97af78273818856d6e6d102a6486d27863
parentb37362640be8f525ef16a6535c92ee1f71c671dd
Mark Relocation Section as NotNeeded (dotnet/coreclr#25715)

- After relocation, relocation section in zap image is not necessary.
- Mark the section as NotNeeded by giving advice(madvise with MADV_DONTNEED)
- It reduces 120~150KB PSS in tizen sample apps.

Commit migrated from https://github.com/dotnet/coreclr/commit/4036c492d23ec3322b01573aab6190233db1f149
src/coreclr/src/pal/inc/pal.h
src/coreclr/src/pal/src/include/pal/map.hpp
src/coreclr/src/pal/src/loader/module.cpp
src/coreclr/src/pal/src/map/map.cpp
src/coreclr/src/vm/peimagelayout.cpp