Write ELF files in regtest and update testdata
Write ELF files in regtest and update testdata

Summary: Write ELF files in regtest and update testdata

Reviewed By: maxmg22

Differential Revision: D5395108

fbshipit-source-id: bb2a110e7796391d1d29f0e6d013f576996e531a

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex