def osabi_to_string(elf_header):
    """Convert the EI_OSABI field to a string."""
    osabi = elf_header['EI_OSABI']
    if osabi == b'\x00':
        return 'System V'
    elif osabi == b'\x01':
        return 'HP-UX'
    elif osabi == b'\x02':
        return 'NetBSD'
    elif osabi == b'\x03':
        return 'Linux'
    elif osabi == b'\x04':
        return 'GNU Herd'
    elif osabi == b'\x06':
        return 'Solaris'
    elif osabi == b'\x07':
        return 'AIX'
    elif osabi == b'\x08':
        return 'IRIX'
    elif osabi == b'\x09':
        return 'FreeBSD'
    elif osabi == b'\x0A':
        return 'Tru64'
    elif osabi == b'\x0B':
        return 'Novell Modesto'
    elif osabi == b'\x0C':
        return 'OpenBSD'
    elif osabi == b'\x0D':
        return 'OpenVMS'
    elif osabi == b'\x0E':
        return 'NonStop Kernel'
    elif osabi == b'\x0F':
        return 'AROS'
    elif osabi == b'\x10':
        return 'Fenix OS'
    elif osabi == b'\x11':
        return 'CloudABI'
    else:
        raise ValueError