-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iASL: keep externals for methods that are referenced
At the moment, the external analysis walk attempts to optimize the size of AML by removing external method declarations that are not called. This results in the external declaration in the following code being removed during compilation: External (EXT0, MethodObj) // EXT0 removed during compilation if (!CondRefOf (EXT0)) { Method (EXT0) { ... } } This happens because referencing externals inside of CondRefOf is not a method call. This results in the first line being removed during compilation and breaks the re-compilation of the above code after disassembly. In order to retain the external declaration, change the external method analysis to look for any named referenced in addition to method calls. Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
- Loading branch information
Erik Kaneda
committed
Feb 2, 2021
1 parent
ffb2501
commit 537a03c
Showing
1 changed file
with
69 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters