[mono] Fix libcoreclr.so build incompatibilities on Linux (#60077)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 7 Oct 2021 17:32:19 +0000 (13:32 -0400)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 17:32:19 +0000 (13:32 -0400)
commit2c2d6dff61d429370067468d74fbe39031d66575
treed0bea7eaa90fa727b25df180a2d0fe2c388d4589
parentaeb84f6a2e8aaee08b2fac3392e3397ad94cf27a
[mono] Fix libcoreclr.so build incompatibilities on Linux (#60077)

Backport of #59988

* Link with -z relro -z now to enable full RELRO mode
  Fixes https://github.com/dotnet/runtime/issues/59904

* Generate and link in version.c to provide version string
  Fixes https://github.com/dotnet/source-build/issues/2484

Co-authored-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/mono/CMakeLists.txt
src/mono/mono.proj
src/mono/mono/mini/CMakeLists.txt