strip: Handle mixed allocated/non-allocated sections.