Skip to contentSkip to conversation

Eclair: re-enable scanning of the (almost) final linking step

PATCH In review Jan Beulich 2 participants 2 messages Sep 10 – Sep 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Eclair: re-enable scanning of the (almost) final linking step

The real final binaries are now no longer created by a linker invocation, but by renaming an intermediate file (each). Arrange for linking pass 2 outputs to be scanned instead, yet continue to exclude the auxiliary .xen.efi.alt.* binaries.

Fixes da944a72fdf4 ("x86: split xen-syms/xen.efi linking rules"))

---
Sadly for Arm64, until "Arm: split xen-syms linking rule" has gone in, this will slow down analysis jobs.

automation/eclair_analysis/ECLAIR/analysis.ecl +2 -2
@@ -36,8 +36,8 @@ their Standard Library equivalents."
 
 -doc_begin="Do not analyze intermediate linking artifacts, as they do not differ from their final
 counterparts for the purposes of MISRA C static analysis."
--file_tag+={xen_efi_tmp, "^xen/\\.xen\\.efi\\..*$"}
--file_tag+={xen_syms_tmp, "^xen/\\.xen-syms\\..*$"}
+-file_tag+={xen_efi_tmp, "^xen/\\.xen\\.efi\\.([01]|alt\\..*)$"}
+-file_tag+={xen_syms_tmp, "^xen/\\.xen-syms\\.[013]$"}
 -frames+={hide, "kind(program)&&target(xen_syms_tmp||xen_efi_tmp)"}
 -doc_end
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

The real final binaries are now no longer created by a linker invocation, but by renaming an intermediate file (each). Arrange for linking pass 2 outputs to be scanned instead, yet continue to exclude the auxiliary .xen.efi.alt.* binaries.

Fixes da944a72fdf4 ("x86: split xen-syms/xen.efi linking rules"))
Quoted 17 lines

---
Sadly for Arm64, until "Arm: split xen-syms linking rule" has gone in, this will slow down analysis jobs.

automation/eclair_analysis/ECLAIR/analysis.ecl +0 -0
@@ -36,8 +36,8 @@ their Standard Library equivalents."
 
 -doc_begin="Do not analyze intermediate linking artifacts, as they do 

not differ from their final
counterparts for the purposes of MISRA C static analysis."
--file_tag+={xen_efi_tmp, "^xen/\\.xen\\.efi\\..*$"} --file_tag+={xen_syms_tmp, "^xen/\\.xen-syms\\..*$"}

+-file_tag+={xen_efi_tmp, "^xen/\\.xen\\.efi\\.([01]|alt\\..*)$"}
+-file_tag+={xen_syms_tmp, "^xen/\\.xen-syms\\.[013]$"}
 -frames+={hide, "kind(program)&&target(xen_syms_tmp||xen_efi_tmp)"}

-doc_end

Signature · 4 lines
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253