DF-5596 / probe_gdcl.s
/* * DF-5596 fix-validation probe: consume GD_CURRENTLDT exactly the way * sys/platform/pc64/x86_64/global.s:66-67 does (`.globl gd_currentldt` * + `.set gd_currentldt,globaldata + GD_CURRENTLDT`), but including the * assym file under test. Built twice: * 1) against the UNPATCHED generated assym.s -> expect: no definition, * symbol silently missing (the bug, build still succeeds) * 2) against the PATCHED regenerated assym.s -> expect: absolute symbol * present with the correct offsetof value */ #include <machine/asmacros.h> #include "assym_under_test.s" .data .set globaldata,0 .globl gd_currentldt_probe .set gd_currentldt_probe,globaldata + GD_CURRENTLDT |