entry: replace init_*_seg with memcpy/memset

Remove duplicate function, memset/memcpy are same as init_*_seg. ref #95