From: Florin Postolache Date: Sat, 11 Mar 2023 08:14:39 +0000 (+0200) Subject: support/scripts: Change the SECINFO_EXP regex to be more permissive X-Git-Tag: RELEASE-0.13.0~94 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=eeeefb5e43b9004ebcf3142277326db07096f418;p=unikraft%2Funikraft.git support/scripts: Change the SECINFO_EXP regex to be more permissive Currently, the regex for matching the .uk_bootinfo section does not consider the case of the section having a number bigger than 99 as a result for objdump -h. This PR changes the regex to consider that case. Signed-off-by: Florin Postolache Reviewed-by: Dragos Petre Approved-by: Marco Schlumpp Tested-by: Unikraft CI GitHub-Closes: #792 --- diff --git a/support/scripts/mkbootinfo.py b/support/scripts/mkbootinfo.py index 984b3fe69..83f452f12 100755 --- a/support/scripts/mkbootinfo.py +++ b/support/scripts/mkbootinfo.py @@ -9,7 +9,7 @@ import subprocess import re import os -SECINFO_EXP = r'^\s+\d+\s+.uk_bootinfo\s+([0-9,a-f]+)' +SECINFO_EXP = r'^\s*\d+\s+\.uk_bootinfo\s+([0-9,a-f]+)' PHDRS_EXP = r'^\s+LOAD.+vaddr\s(0x[0-9,a-f]+).+\n.+memsz\s(0x[0-9,a-f]+)\sflags\s([rwx|-]{3})$' # Memory region types (see include/uk/plat/memory.h)