build: Fix glibc symbol pattern

This commit is contained in:
klzgrad 2020-10-10 01:11:56 +08:00
parent 46e303cee6
commit fec289335e

View File

@ -16,7 +16,7 @@ MAX_ALLOWED_GLIBC_VERSION = [2, 17]
def get_replacements(nm_file, max_allowed_glibc_version): def get_replacements(nm_file, max_allowed_glibc_version):
symbol_format = re.compile('\S+ \S+ ([^@]+)@@?(\S+)\n') symbol_format = re.compile('\S+ \S+ ([^@]+)@@?([^@]+)')
version_format = re.compile('GLIBC_[0-9\.]+') version_format = re.compile('GLIBC_[0-9\.]+')
symbols = {} symbols = {}
for line in nm_file: for line in nm_file: