def _should_process_segment(seg, segname):
    """Check if we should process the specified segment."""
    return segname.endswith('__DATA_CONST.__mod_init_func') or \
            segname == '__DATA.__kmod_init'