https://github.com/smithp35 approved this pull request. Definitely agree that we shouldn't truncate p_memsz. I think its unlikely to use Omagic and separate-loadable-segments but it doesn't hurt to have the test case. https://github.com/llvm/llvm-project/pull/139207