[d-kernel] [PATCH] config: Disable DEBUG_INFO_BTF on aarch64

Vitaly Chikunov vt на altlinux.org
Сб Окт 29 00:35:15 MSK 2022


We have the same kernel for enterprise systems (like TaiShan) and toy
computers (like Raspberry Pi). Raspberry Pi cannot boot newer kernels
with U-Boot anymore[1] due to vmlinuz (that is uncompressed Image[2])
size approaching 40MB, (which is limited by fdt_addr_r=0x02600000
parameter specified in our U-Boot package).

Obvious target to reduce size is removing .BTF section. As a downside
this will reduce eBPF & tracing abilities on these platforms.

Link: https://bugzilla.altlinux.org/41479
Link: https://www.kernel.org/doc/Documentation/arm64/booting.txt
Signed-off-by: Vitaly Chikunov <vt at altlinux.org>
---
 config-aarch64 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config-aarch64 b/config-aarch64
index a23500fdf356..7d70fcff9fa6 100644
--- a/config-aarch64
+++ b/config-aarch64
@@ -1597,3 +1597,4 @@ CONFIG_USB_SERIAL_CP210X=y
 CONFIG_USB_SERIAL_PL2303=y
 CONFIG_USB_SERIAL_FTDI_SIO=y
 CONFIG_USB_SISUSBVGA=y
+# CONFIG_DEBUG_INFO_BTF is not set
-- 
2.33.4



Подробная информация о списке рассылки devel-kernel