Files
chipsec-chipsec/drivers/linux/amd64
Stephan f5b750fa07 Fix objtool errors (#2594)
* Fix objtool 'unannotated intra-function call'

Fixes objtool errors in stricter kernel configs

objtool likely wants the function to be annotated with
SYM_CODE_START/SYM_CODE_END (linux/linkage.h). It might be
better to rewrite the linux kernel module assembly files to use gas,
and properly annotate everything, but this should be a quick fix for
now.

* Use module_init/module_exit in linux driver

Fixes objtool errors in stricter kernel configs

* Make init functions static

* Re-add __init & __exit macros in linux driver

* Add semicolons after module_init/module_exit calls

---------

Signed-off-by: J. Stephan Bentze <j.s.bentze@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-29 11:59:38 -08:00
..
2026-01-29 11:59:38 -08:00