Revert "using custom section, remove case_main.h file"

This reverts commit c5010b0a702ff1d8663bbe2fc5e8433c3fc02bcf.