relocation: x-pie-executable needs relocation (#31248)

This commit is contained in:
eugeneswalker 2022-06-22 16:55:28 -07:00 committed by GitHub
parent c3fecfb103
commit 7ef52acfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,8 +433,9 @@ def needs_binary_relocation(m_type, m_subtype):
m_type (str): MIME type of the file
m_subtype (str): MIME subtype of the file
"""
subtypes = ('x-executable', 'x-sharedlib', 'x-mach-binary', 'x-pie-executable')
if m_type == 'application':
if m_subtype in ('x-executable', 'x-sharedlib', 'x-mach-binary'):
if m_subtype in subtypes:
return True
return False