'Return the section object that the address belongs to.
:param int addr: The address to test
:return: The section that the address belongs to, or None if the address does not belong to any section, or if
section information is not available.
:rtype: cle.Segment'

def _addr_belongs_to_segment(self, addr):

    obj = self.project.loader.find_object_containing(addr)
    if (obj is None):
        return None
    if isinstance(obj, (ExternObject, KernelObject, TLSObject)):
        return None
    return obj.find_segment_containing(addr)
