mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 17:34:43 +03:00

The utglobal.c is used to define and initialize global variables. It makes sense if just adding utglobal.o to applications that are using such variables. But AcpiUtInitGlobals() is preventing us from doing so as this initialization function references other components' initializations code, which leads to the requirement that many files should also get linked if one wants to link utglobal.o. By eliminating the stubs for acpiexamples, acpinames, iasl, now it is possible to just move AcpiUtInitGlobal() to utinit.c for applications that require this function to link. By linking utglobal.o, we can stop defining DEFINE_ACPI_GLOBALS for applications (currently only acpidump is affected). Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>