1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/firmware/efi/libstub
Ard Biesheuvel ddeeefe2df arm64/efi: efistub: Apply __init annotation
This ensures all stub component are freed when the kernel proper is
done booting, by prefixing the names of all ELF sections that have
the SHF_ALLOC attribute with ".init". This approach ensures that even
implicitly emitted allocated data (like initializer values and string
literals) are covered.

At the same time, remove some __init annotations in the stub that have
now become redundant, and add the __init annotation to handle_kernel_image
which will now trigger a section mismatch warning without it.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2015-01-15 21:28:35 +00:00
..
arm-stub.c arm64/efi: efistub: Apply __init annotation 2015-01-15 21:28:35 +00:00
efi-stub-helper.c arm64/efi: efistub: Apply __init annotation 2015-01-15 21:28:35 +00:00
efistub.h efi: efistub: Convert into static library 2014-07-18 21:22:19 +01:00
fdt.c efi/arm64: Fix fdt-related memory reservation 2014-09-09 07:51:09 +01:00
Makefile arm64/efi: efistub: Apply __init annotation 2015-01-15 21:28:35 +00:00