diff --git a/add-check-for-a-non-zero-.text-segment-in-.a-archive.patch b/add-check-for-a-non-zero-.text-segment-in-.a-archive.patch index 60af9d5..2044f43 100644 --- a/add-check-for-a-non-zero-.text-segment-in-.a-archive.patch +++ b/add-check-for-a-non-zero-.text-segment-in-.a-archive.patch @@ -1,5 +1,5 @@ diff --git a/BinariesCheck.py b/BinariesCheck.py -index 36d73f8..562c56a 100644 +index 36d73f8..0fb91db 100644 --- a/BinariesCheck.py +++ b/BinariesCheck.py @@ -73,6 +73,10 @@ class BinaryInfo(object): @@ -8,7 +8,7 @@ index 36d73f8..562c56a 100644 + # [Nr] Name Type Address Off Size ES Flg Lk Inf Al + # [ 1] .text PROGBITS 0000000000000000 000040 000000 00 AX 0 0 1 -+ section_regex = re.compile(r'.*\] (?P
[^\s]*)\s*\w+\s*\w*\s*\w*\w*\s*(?P\w*)') ++ section_regex = re.compile(r'.*\] (?P
\S*)\s*\S+\s*\S*\s*\S*\s*(?P\w*)') + def __init__(self, pkg, path, fname, is_ar, is_shlib): self.readelf_error = False @@ -43,7 +43,7 @@ index 36d73f8..562c56a 100644 + r = self.section_regex.search(line) + if r: + sn = r.group('section') -+ if sn == '.init_array' or sn == '.fini_array' or sn.startswith('.text'): ++ if sn == '.preinit_array' or sn == '.init_array' or sn == '.fini_array' or sn.startswith('.text'): + has_text_segment = True + size = int(r.group('size'), 16) + if size > 0: diff --git a/rpmlint.changes b/rpmlint.changes index 1a1713a..27ccae7 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Aug 9 12:01:03 UTC 2019 - Martin Liška + +- Update add-check-for-a-non-zero-.text-segment-in-.a-archive.patch patch to align with: + 38fc30cafe99d38059ca54b98bc87f5544f0bb4e +------------------------------------------------------------------- Thu Aug 8 13:14:36 UTC 2019 - Dominique Leuenberger - Add Development/Languages/Go group.