I would like to have a test case for this. How did you make the file you tried to load that has this problem? I'm not sure it's invalid to have an object with no loadable segments. I guess it is since there has to be one that includes the dynamic section.