Fix input cdex -> output non-cdex

Previously there was a bug where the shared data section would not
get copied over. Fixed this by copying it over.

Added regression test.

Test: test-art-host-gtest
Bug: 73105322
Bug: 73059081
Bug: 73059886
Bug: 73058502
Bug: 73058759
Bug: 63756964
Change-Id: I0efd4272cfaae604ea955c3548f5a054b243ec68
2 files changed