]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
scripts: check-symfile: Allow also symbols in 'readonly' section
authorPeter Krempa <pkrempa@redhat.com>
Mon, 27 Apr 2026 10:05:06 +0000 (12:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 14 May 2026 10:13:09 +0000 (12:13 +0200)
Validate also variables exported as 'extern' e.g. from the util
submodule.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
scripts/check-symfile.py

index c2ee40511813115ab512f82c836bfffc5738948d..e4149b771ef5ec8b336523ee86643a4a3aaa8c6f 100755 (executable)
@@ -61,7 +61,7 @@ for elflib in elflibs:
 
     for line in nm:
         line = line.decode("utf-8")
-        symmatch = re.search(r'''^\S+\s(?:[TBSDG])\s(\S+)\s*$''', line)
+        symmatch = re.search(r'''^\S+\s(?:[TBSDGR])\s(\S+)\s*$''', line)
         if symmatch is None:
             continue