Write shared data section for oatdump export dex

Write this out so that the resulting dex can be dumped and inspected.

Bug: 77469384
Test: test-art-host-gtest-oatdump_test

Change-Id: Iadeaca0eaaf7c75a938dfc776801cf94c89d07f6
4 files changed