Fix RVA field placement order (#24047)
authorFadi Hanna <fadim@microsoft.com>
Thu, 18 Apr 2019 21:16:47 +0000 (14:16 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Apr 2019 21:16:47 +0000 (14:16 -0700)
commit1a2bc6c63ebeff1452ac9ae05b2b0eda058062fa
treec3cbb611a95b6c4d25909ac8deb3023ee595b3d9
parentcae14d02be194bb68e8b90b556d6931ab37ac2ba
Fix RVA field placement order (#24047)

* Static RVA fields should be placed sequentially after the qsort operation to not break Managed C++ binaries in R2R

* Add regression test
src/zap/zapcode.cpp
src/zap/zapmetadata.cpp
tests/src/JIT/Directed/rvastatics/RVAOrderingTest.il [new file with mode: 0644]
tests/src/JIT/Directed/rvastatics/RVAOrderingTest.ilproj [new file with mode: 0644]