Revert "Don't allow MemoryFiles of negative length."

This reverts commit 42cd832cd285edd230651d86331b71e3c5fb1c2c.
Revert "decouple SW FLP and HW FLP overlay flags"

This reverts commit eb0798eeccca4d116a044512a20c022969b9a558.